I’m sure it is simple but I can’t seem to tell the finder to drop a file on an application. The following script returns the error: “Finder got an error: can’t continue drop.”
tell application "Finder" to set this_file to "HD:Image.jpg" as alias
tell application "Finder" to drop onto application "Preview" with this_file
As far as I know, there is no “drop onto” in the Finder’s dictionary. Maybe this will work.
set this_file to "HD:Image.jpg" as alias -- The Finder doesn't need to be involved with this step.
tell application "Finder" to open this_file using application file "HD:Desktop Folder:Preview"
–
I’ve never used this before so I’m guessing at the syntax.
Rob