Hello scripters,
I’m trying to do something that should be simple but it does not work. Other times things work then don’t work in a seemingly random fashion.
Here it is :
version 1:
set myfile to choose file
tell application "GraphicConverter"
open myfile
set myExif to exiftext of window 1
end tell
result:
get exiftext of window 1
“GraphicConverter got an error: Some data was the wrong type.”
version 2:
set myfile to choose file
tell application "GraphicConverter"
open myfile
get exiftext of window 1
set myExif to result
end tell
result: OK
version 3:
set myfile to choose file
tell application "GraphicConverter"
get file exif of myfile -- same with "file iptc"
end tell
result:
open alias “HD:somefile.jpg”
get file exif alias “HD:somefile.jpg”
“GraphicConverter got an error: An error of type -2 has occurred.”
version 4:
set myfile to choose file
tell application "GraphicConverter"
get file imageinfo of myfile
end tell
result: OK
So, what’s going on here? Am I missing something or the scripting is buggy?
furthermore, what does this mean?
get exif‚v : read the exif data from an image
get exif
value integer : the exif number
[description boolean] : returns the exif data with the description/meaning like “Creation Date:”
→ string
What is the exif number?
If I do an [get exif of window 1], I get a “paramater missing” error. It is probably that value, but how do you reference it? Tyring [exif 1] - "access not allowed. Trying [{exif:1}] give nonsense results ({exif:1} is treated as a variable). Trying [(exif,1)] gives "get exif of window 1 - “GraphicConverter got an error: Some data was the wrong type.”
And the following is even more nebulous:
set date from content‚v : Set the file creation date from the EXIF content of the file (if available)
How do you reference the file?
This:
set myfile to choose file
tell application "GraphicConverter"
set date from content of myfile
end tell
results in this:
set date from content alias “HD:somefile.jpg”
“GraphicConverter got an error: An error of type 1 has occurred.”
I DON’T GET IT! Can someone please help out here?
Model: CUBE
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)