Re: non-existant app
Re: non-existant app
- Subject: Re: non-existant app
- From: Robert Poland <email@hidden>
- Date: Sun, 31 Jan 2010 17:17:51 -0700
Thanks Shane,
On OS 10.6.2, that, when compiling, gives me the error Can't get application id "com.adobe.dreamweaver".
On Jan 31, 2010, at 3:26 PM, Shane Stanley wrote:
> On 1/2/10 8:36 AM, "Robert Poland" <email@hidden> wrote:
>
>> if the machine does not have Dreamweaver is there a better way to avoid the
>> script hunting for a non-existant app?
>
> If you're running 10.5 or later, use the id form, which is probably:
>
> tell application id "com.adobe.dreamweaver"
>
> The release nots: "When running a script, if an application specified by id
> is not found, AppleScript will not ask where it is. It will throw an error,
> which can be caught using a try block."
>
> --
> Shane Stanley <email@hidden>
> AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
Bob Poland - Fort Collins, CO
_______________________________________________
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