Re: "path to resource" in a tell Finder statement doesn't work
Re: "path to resource" in a tell Finder statement doesn't work
- Subject: Re: "path to resource" in a tell Finder statement doesn't work
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 9 Jan 2006 12:28:37 +0100
Le 9 janv. 2006, à 11:57, Andrea -XFox- Govoni a écrit :
StandardAdditions dictionary says that the "path to resource" command
return the full path to the specified resource, searching by default in
the current application/script bundle.
Save this script as an application bundle:
--start copy here
tell application "Finder" to set iconToUse to path to resource
"applet.icns"
--end copy here
Launch the saved application bundle with a double click in the Finder.
The Finder will display a "Resource not found." dialog.
If you don't include the "path to resource" command in a tell Finder
statement, it works as documented.
Is think this is a bug.
Am I wrong?
It seems that you are wrong, but of course I may be wrong.
Perhaps useful to cut in two instructions:
As "path to resource" is defined in standard additions, it is not
logical to call it in a tell Finder statement.
Perhaps better to code:
set iconToUse to path to resource "applet.icns"
I can't test because as far as I know, this is a 10.4 feature and I am
using 10.3.9.
Yvan KOENIG
_______________________________________________
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