Puzzling display dialog
Puzzling display dialog
- Subject: Puzzling display dialog
- From: Luther Fuller <email@hidden>
- Date: Sun, 18 Feb 2007 18:31:57 -0600
This is a very puzzling error. My script contains the line ...
tell me to display dialog the result with title dTitle buttons
{"Cancel", "Automatic", "Manual"} default button 3
The dialog displays properly, but when I click "Manual" or
"Automatic", I get the error message ...
"The cancel button cannot be the same as the default button."
After many recompiles, (I'll spare you the details), I finally found
the cause!
AFTER the dialog was the line ...
tell application "Finder"
set comment of (alias file "x" of someAlias) to anInteger & tab &
someText
end tell
I changed this (finally!) to ...
( anInteger as Unicode text) & tab & someText as unicode text
tell application "Finder" to set comment of (alias file "x" of
someAlias) to the result
Now it works, but that's a strange error returned by the Finder.
Has anyone seen this before? And is there more to be known about this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden