OK, I’m a software engineer by trade, so I’m sure I’ll get the hang of AS, but I have to admit, I’m having problems getting started.
I would like to create a simple drag/drop Applescript that will invoke GraphicConverter and perform a predefined file conversion process. Specifically I want to convert dropped images to the Electric Image “IMAGE” format.
I have looked at all of the sample scripts on numerou sites, and they use the “Save Window” method. I would like to use the “Convert File” method.
Any sample code that may help me with this? I’ve looked at the AS Dictionary for GC, but I’m not sure where to proceed. Here is the text from the dictionary:
convert file‚v : convert a file using a batch setting to the destination folder
convert file
using batch file specification : batch settings file
to folder file specification : destination folder
Never having used this, Jacques, my user’s “Library:Application Support:GraphicConverter:Actions:” folder is empty. I assume you have to batch view a folder and then choose batch functions to be saved there. Just how do you do that? Can a batch action be scripted?
According to the AS Library definition of the “convert file” command you can do batch processing.
From Library)
convert file‚v : convert a file using a batch setting to the destination folder
convert file
using batch file specification : batch settings file
to folder file specification : destination folder
Still having some problems with the general syntax, but thanks for helping. trying to work though the sample code and use the “convert file” instead of the Save option on the window.