• 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
Applescript equivalent of $0 in shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript equivalent of $0 in shell script


  • Subject: Applescript equivalent of $0 in shell script
  • From: "Hiroshi T." <email@hidden>
  • Date: Sat, 7 Oct 2006 13:11:35 +0900


Could someone kindly tell me how to obtain the file name of the script itself?
I'm thinking of making a symbolic link to the script file and implement slightly
different functions in one script as one can do for shell script.


I tried

get name of document 1

While this line works when invoked in the Script Editor, it does not work when invoked from Finder.

Thanks for reading.
---
H.T.

_______________________________________________
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: Applescript equivalent of $0 in shell script
      • From: Doug McNutt <email@hidden>
    • Re: Applescript equivalent of $0 in shell script
      • From: Takaaki Naganoya <email@hidden>
  • Prev by Date: Re: Can't turn off screen savers in System Preferences
  • Next by Date: Re: Applescript equivalent of $0 in shell script
  • Previous by thread: Re: Human Readable Time snipit
  • Next by thread: Re: Applescript equivalent of $0 in shell script
  • Index(es):
    • Date
    • Thread