Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script)
Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script)
- Subject: Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script)
- From: "Hiroshi T." <email@hidden>
- Date: Sat, 14 Oct 2006 13:42:29 +0900
Thanks to all of you who replied to me.
The command
path to me
or
name of current application
should be the Applescript equivalent of $0.
But neither of them works in iTunes scripts menu.
On Oct 7, 2006, at 4:55 PM, Philip Aker wrote:
set ptm to (path to me)
set main to (((path to resource "Scripts" in bundle ptm) as string) &
"main.scpt")
set spath to POSIX path of main
tell application "System Events"
activate
display dialog spath with icon caution
end tell
This script cannot be saved due to syntax error in the second line.
By the way, what is the most comprehensive reference book for
Applescript with many examples indexed by their functions?
I've written hundreds of lines of Applescript for MS Word and iTunes
and got tired of finding rather ad hoc mantras to implement what I want
to do.
Currently I have an introductory book and PDF documents from Apple.
Thanks in advance.
---
H.T.
Any mail that does not come from this mailing list is ignored.
_______________________________________________
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