Applescript Error w Pan 5

David Thompson dthmpsn1 at uiuc.edu
Sun Mar 9 12:27:22 PDT 2008


>
>
>Anyway - there seems to be a sensitivity with quotes/curly quotes - like if
>I replace:
>
>³tell ... end tell² with: "tell ... end tell" - (curly to straight quotes) -
>the proc will fail - Is there some kind of rule to follow?

More than likely, you had quotes within the script. If you write something like

ExecuteAppleScript "tell application "Panorama"
set theID to the value of cell "ID"
end tell

say theID"

then Panorama thinks the ExecuteAppleScript statement reads

ExecuteAppleScript "tell application "

The second quote it finds is taken to be the end 
quote. Everything after that is taken to be some 
other statement. Curly quotes are a good choice 
for quoting the code of an AppleScript because, 
unlike straight quotes "" and braces {}, 
AppleScript doesn't have a use of its own for 
them, so it's easier to keep them out of the 
script.

Curly quotes aren't very good for email though. 
Apple Mail users are going to see the curly 
quotes in our email messages as something else. I 
think they will look like superscript numbers. 
Digest subscribers who get the plain text digest, 
instead of the MIME digest will see them as 
question marks.

Dave


More information about the Qna mailing list