• 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: "open" command without full path (OS 9)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "open" command without full path (OS 9)


  • Subject: Re: "open" command without full path (OS 9)
  • From: "Jon Reinsch" <email@hidden>
  • Date: Tue, 25 Feb 2003 16:24:40 -0800

Thanks - that's just what I needed.

Paul Skinner <email@hidden> wrote:
You can use the command 'path to me' in a script and if run as an application (not in an editor) it will return the container that it is in. You could take that and append the filename you know is in the same directory and have a path to it.

display dialog (((path to me) as string) & "filename.ext")

the results of this will differ when run as an application and as a script in an editor.

On Tuesday, February 25, 2003, at 01:14 PM, Jon Reinsch wrote:

snip


Am I misunderstanding the documentation, or is AppleScript not behaving as advertised? This is a stripped-down version of what I actually want to do, but the key factor is that I cannot know the full path of the file  only that it is in the current directory. I'm using AppleScript 1.8.3 on OS 9.2.2.
_______________________________________________
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.

  • Prev by Date: Re: Scripting Mail:get selection
  • Next by Date: Re: Scripting Mail:get selection
  • Previous by thread: Re: "open" command without full path (OS 9)
  • Next by thread: PLACING AN APP IN THE RIGHT SIDE OF THE DOCK (iJoe)
  • Index(es):
    • Date
    • Thread