• 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: Paul Skinner <email@hidden>
  • Date: Tue, 25 Feb 2003 13:47:47 -0500

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.

References: 
 >"open" command without full path (OS 9) (From: "Jon Reinsch" <email@hidden>)

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