scripting system error -1751 ?
set input_folder to "d2:Users:data:goes color:east:incomingimages"
property type_list : {"TIFF"}
property extension_list : {"tif", "tiff"}
tell application "Finder"
set FinderRef to a reference to ((items of folder input_folder) whose ¬
file type is in type_list or name extension is in extension_list)
end tell
while goodtest is:
set input_folder to "d2:Users:data:goes color:east:incomingimages"
property type_list : {"TIFF"}
property extension_list : {"tif", "tiff"}
tell application "Finder"
set FinderRef to a reference to ((items of folder input_folder))
end tell
The only difference between the two is the file type and extension check in badtest. Both run fine as scripts in the editor, but when I save them as apps and doubleclick them to run, goodtest run fine, while badtest seems to run correctly (it gets the correct list of files) but then generates the following script error:
"Could not save changes to this script because of a scripting system (OSA) error -1750"
Any suggestions as to what I'm doing wrong? I'm fairly new to applescripting so I'm hoping I'm making a really obvious mistake of some sort.
This is on 10.4.5 with the latest security update and script editor version 2.1.1 (81)
G5 dual 2 GHz