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

Re: [NEWBIE] Open file


  • Subject: Re: [NEWBIE] Open file
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 05 Nov 2002 12:47:16 -0800

On 11/5/02 10:17 AM, "Stiphane Pinel" <email@hidden> wrote:

> Le 5/11/02 18:40, + Paul Berkowitz ; <email@hidden> a icrit :
>
>> It depends mostly on whether "the script" is a script APPLICATION or a
>> compiled script being run by another app.
>
> Actually, this is a compiled script being run by an other app.
>
> Thanks.

Then you can't do it unless you require that the script be in the same
folder as the app, or some other folder which you can get to via the various
'path to' constants. You can read about most (many) of those in the
Scripting Additions Dictionary ('path to'): there are others as well, such
as:

path to At Ease documents folder as string

(That's the user Documents folder.) Then construct subfolder paths adding on
":" between each. Then test for an alias there. if it's not there, ask the
user to find it with

choose file

or

choose folder

scripting addition, and save the result as a script property (as an alias,
so it doesn't matter if the user moves it again), so you never have to ask
more than once.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: [NEWBIE] Open file (From: Stéphane Pinel <email@hidden>)

  • Prev by Date: Re: AppleScript's script size limit
  • Next by Date: Re: Removing characters from a string
  • Previous by thread: Re: [NEWBIE] Open file
  • Next by thread: Re: [NEWBIE] Open file
  • Index(es):
    • Date
    • Thread