• 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
Re: Dialog from script application displays raw codes (was: no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dialog from script application displays raw codes (was: no subject)


  • Subject: Re: Dialog from script application displays raw codes (was: no subject)
  • From: kai <email@hidden>
  • Date: Tue, 29 Aug 2006 02:32:44 +0100


On 27 Aug 2006, at 17:38, Peter Bunn wrote:

Earlier today, kai wrote:

Such a statement can be added at the beginning of the script, and needs no
specific commands. Usually something like this should suffice (to access
Finder's terms):


----------
run script "tell application \"Finder\"
end"
----------

Out of curiosity, would this constitute a usable way of circumventing a
'double tell' or equivalent in a more complicated text script? Or would
the added compile time at run time kill it as such?

I've not actually tried it in that context, Peter - although a 'double tell' (or its replacement since AppleScript 1.4, 'using terms from') would probably still be a better way to avoid the old "Where is application X?" dialog. One problem with relying purely on application names is that, for various reasons (such as version differentiation), they can sometimes change. Checking for an application file id (using a creator code or bundle identifier) would be my preferred approach.


For anyone interested in exploring this subject further, Bill Cheeseman has written a couple of excellent articles:

Tell By Variable (herein of the Double-Tell):
http://applescriptsourcebook.com/viewtopic.php?pid=60342

Launch By Creator or Identifier:
http://applescriptsourcebook.com/viewtopic.php?pid=60341

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Dialog from script application displays raw codes (was: no subject) (From: Peter Bunn <email@hidden>)

  • Prev by Date: Re: Look for prefix, if no match display alert.
  • Next by Date: Re: A few questions about dates
  • Previous by thread: Re: Dialog from script application displays raw codes (was: no subject)
  • Next by thread: [ann] Appscript Installer 1.4.1 released
  • Index(es):
    • Date
    • Thread