Re: name of this document (solved)
Re: name of this document (solved)
- Subject: Re: name of this document (solved)
- From: Ronald Hofmann <email@hidden>
- Date: Tue, 23 Sep 2008 08:23:47 +0200
Great, thanks a lot, works fine.Am Di23.09.2008 ยท 39 um 08:12 schrieb Philip Aker: 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