-------------------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2015/09/04 10:57
# dMod: 2015/09/05 17:30
# Appl: Finder, GraphicConverter 9
# Task: Convert Files Using a GC-Batch-Definition-File
# Tags: @Applescript, @Script, @Finder, @GraphicConverter_9, @File, @Conversion, @Batch
-------------------------------------------------------------------------------------------
set imageSourceFolder to alias ((path to home folder as text) & "test_directory:Malcolm.Pict.Test:PICT_Example_Images:")
set imageConversionDestinationFolder to alias ((path to home folder as text) & "test_directory:Malcolm.Pict.Test:PICT_To_JPG_Converted:")
set batchDefinitionFile to alias ((path to application support from user domain as text) & "GraphicConverter:Actions:Convert to PNG")
tell application "Finder" to set imageFileList to files of imageSourceFolder as alias list
if imageFileList ≠ {} then
set theFile to item 1 of imageFileList
# Single file conversion.
tell application "GraphicConverter 9"
convert file theFile using batch batchDefinitionFile to folder imageConversionDestinationFolder
end tell
# Convert List of files.
tell application "GraphicConverter 9"
quick convert files imageFileList in folder imageConversionDestinationFolder using batch batchDefinitionFile
end tell
end if
-------------------------------------------------------------------------------------------