Re: name of this document
Re: name of this document
- Subject: Re: name of this document
- From: Philip Aker <email@hidden>
- Date: Mon, 22 Sep 2008 23:12:13 -0700
On Sep 22, 2008, at 11:02 PM, Ronald Hofmann wrote: Hi everybody, in order to write error logs I want to know the name of the script which writes to the error log. Of course, I could write the name of the script into a parameter of the error call like this: write_cmd_error_log("/Users/ronny/Desktop/ErrLog.txt", "theErrMessage","setAliasToOrgModDate")
This is the way I did it so far.
What I want is: write_cmd_error_log("/Users/ronny/Desktop/ErrLog.txt","theErrMessage",theNameOfThisScriptDocument)
In this case I only have to fill in theErrMessage. Much more comfortable.
Any suggestions?
set finfo to info for (path to me) set snam to name of finfo
Philip Aker
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden