Hello all,
I'm writing a script to read the exif data of graphics files using the "get file exif" command of GraphicConverter. That works well if I run this within a script, or use the "choose file" command when running the same script as an application.
My problem comes when I make a droplet. It seems that the droplet works fine as long as my graphics files dropped on it are 28 characters or less. If I add one more character to a 28 character file and then drop it on the droplet, I get a type 2 error from GraphicConverter.
My question. Is there a number of character limit when using the "on open xxxx" handler? and if there is, what is the standard way of getting around it?
This works no matter how long the file name is: on run --script-- set fileNameToChange to choose file tell application "GraphicConverter" try set fileData to get file exif fileNameToChange -- script--
This also works fine on run --script-- set fileNameToChange to alias ":Users:john:Desktop:123456789012345678901234567890123etc.JPG" tell application "GraphicConverter" try set fileData to get file exif fileNameToChange -- script--
This also works as long as the file name is not over 28 characters but returns a type 2 error for files over 28 characters in length: on open fileNameToChange --script-- tell application "GraphicConverter" try set fileData to get file exif fileNameToChange as string -- script--
Any insight would be welcome. Thanks John
|