• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Puzzling display dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Puzzling display dialog
      • From: Luther Fuller <email@hidden>
    • Re: Puzzling display dialog
      • From: Christopher Nebel <email@hidden>
    • Re: Puzzling display dialog
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: When was the computer turned off?
  • Next by Date: Re: Puzzling display dialog
  • Previous by thread: Re: When was the computer turned off?
  • Next by thread: Re: Puzzling display dialog
  • Index(es):
    • Date
    • Thread