• 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
"path to resource" in a tell Finder statement doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"path to resource" in a tell Finder statement doesn't work


  • Subject: "path to resource" in a tell Finder statement doesn't work
  • From: Andrea -XFox- Govoni <email@hidden>
  • Date: Mon, 09 Jan 2006 11:57:25 +0100

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?

--
Andrea "XFox" Govoni

AIM/iChat/ICQ: email@hidden
Yahoo! ID: xfox82
Skype Name: draykan

PGP
KeyID: 0x212E69C1
Fingerprint: FBE1 CA7D 34BE 4A53 9639  5C36 B7A0 605F 212E 69C1
 _______________________________________________
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

  • Follow-Ups:
    • Re: "path to resource" in a tell Finder statement doesn't work
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: text Encoding with Write to file
  • Next by Date: Re: "path to resource" in a tell Finder statement doesn't work
  • Previous by thread: Re: text Encoding with Write to file
  • Next by thread: Re: "path to resource" in a tell Finder statement doesn't work
  • Index(es):
    • Date
    • Thread