• 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: Resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resources


  • Subject: Re: Resources
  • From: Stan Cleveland <email@hidden>
  • Date: Fri, 30 Sep 2011 15:09:36 -0700

On Sep 30, 2011, at 11:01 AM, Ezekiel Elin wrote:

> How can I open a file I put in the resources folder for an applescript application?
>
> http://www.ezekielelin.com/img/image/Screen Shot 2011-09-30 at 1.59.51 PM.png
>
> on the right in the image, I wish to be able to open anything in the scripts folder (or any folder I create)

Hi Ezekial,

If you're looking into the bundle of the currently executing AppleScript, this is all you should need:

    set mainScriptPath to path to resource "main.scpt" in directory "Scripts"
    --> MacHD:Users:stanc:Desktop:MyScript.app:Contents:Resources:Scripts:main.scpt

Stan C.

 _______________________________________________
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: Resources
      • From: Ezekiel Elin <email@hidden>
References: 
 >Resources (From: Ezekiel Elin <email@hidden>)

  • Prev by Date: Re: Resources
  • Next by Date: Re: Resources
  • Previous by thread: Re: Resources
  • Next by thread: Re: Resources
  • Index(es):
    • Date
    • Thread