• 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: tell app, name in string var
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tell app, name in string var


  • Subject: Re: tell app, name in string var
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 28 May 2011 09:39:35 +1000
  • Thread-topic: tell app, name in string var

On 28/5/11 6:58 AM, "Thomas Fischer" <email@hidden> wrote:

>>> the Finder is the authority for the existence of files
>>
>> What makes you say that?
>
> Because the Finder knows if a file exists

Perhaps this is a linguistic fine point, but the Finder might be "an"
authority -- it's certainly not "the" authority. In fact, for something like
this, it's a poor choice. It's slow and unreliable, and the idea of System
Events was to replace the Finder for this sort of thing.

The AppleScript team has frowned on using "alias <someHFSPath>" in a try
block, but it's solid and quick. The shell command test might be another
alternative.


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: tell app, name in string var
      • From: Christopher Stone <email@hidden>
    • Re: tell app, name in string var
      • From: Doug McNutt <email@hidden>
References: 
 >Re: tell app, name in string var (From: Thomas Fischer <email@hidden>)

  • Prev by Date: Re: Load Script
  • Next by Date: Re: tell app, name in string var
  • Previous by thread: Re: tell app, name in string var
  • Next by thread: Re: tell app, name in string var
  • Index(es):
    • Date
    • Thread