What is the difference between
1) open file object
and 2) open object
in applescript.
For example, I got an error "Can't make some data into the expected type." for the following code.
tell application "Finder"
set Xpath to "MacBookProHD:Users:tom:Music:"
set cueFile to (Xpath & "test.cue")
end tell
tell application "Toast Titanium"
activate
open cueFile
end tell
However, there is no error with
tell application "Toast Titanium"
activate
open file cueFile
end tell
For TextWrangler, either way works fine.
I'm confused.
1) open file object
and 2) open object
in applescript.
For example, I got an error "Can't make some data into the expected type." for the following code.
tell application "Finder"
set Xpath to "MacBookProHD:Users:tom:Music:"
set cueFile to (Xpath & "test.cue")
end tell
tell application "Toast Titanium"
activate
open cueFile
end tell
However, there is no error with
tell application "Toast Titanium"
activate
open file cueFile
end tell
For TextWrangler, either way works fine.
I'm confused.