• 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: 'log' command results in AppleScript Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'log' command results in AppleScript Editor


  • Subject: Re: 'log' command results in AppleScript Editor
  • From: Tommy Bollman <email@hidden>
  • Date: Wed, 11 Aug 2010 14:32:34 +0200

Hello.

I just want to add that I always use such a log command like Tim, because that those log statement also works from an application.
On 11 Aug 2010, at 13:08, Emmanuel LEVY wrote:

> ... or unexpected results such as your home folder becoming an executable of 4 kb (actual experience).
>
>> Again, don't try to do your own quoting of shell commands.  Use
>> 'quoted form of log_string' instead of the manual quotation marks.
>> Otherwise any embedded quotes, dollar signs, exclamation points, etc
>> will cause trouble in the form of syntax errors and mangled or missing
>> messages.
>>
>> On Tuesday, August 10, 2010, Tim Mansour <email@hidden> wrote:
>>> On 11 August 2010 11:36, Gil Dawson <email@hidden> wrote:
>>>> Could someone please tell me how to see the 'log' results alone?
>>>
>>> I usually use my own handler to write to a log file, so I'm not at the
>>> mercy of any particular script editor. For instance:
>>>
>>> to logit(log_string, log_file)
>>>   do shell script ¬
>>>   "echo `date '+%Y-%m-%d %T: '`\"" & log_string & ¬
>>>   "\" >> $HOME/Library/Logs/" & log_file & ".log"
>>> end logit
>>>
>>>
>>>
>>> --
>>> Tim Mansour <email@hidden>
>>> Neologica Print & Promotions ABN 63 904 335 408
>>> Certified FileMaker 10 Developer
>>> PO Box K1163 : Haymarket NSW 1240
>>> Mobile 0405 500 846 : Melbourne in-dial 03 9012 7441
>>> _______________________________________________
>>> 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
>>>
>>
>> --
>> Mark J. Reed <email@hidden>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>

Best regards



Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
	If an idea can survive a bureaucratic review
	and be implemented it wasn't worth doing.

 _______________________________________________
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

References: 
 >'log' command results in AppleScript Editor (From: Gil Dawson <email@hidden>)
 >Re: 'log' command results in AppleScript Editor (From: Tim Mansour <email@hidden>)
 >Re: 'log' command results in AppleScript Editor (From: "Mark J. Reed" <email@hidden>)
 >Re: 'log' command results in AppleScript Editor (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: Libraries and effiency
  • Next by Date: Re: Libraries and effiency
  • Previous by thread: Re: 'log' command results in AppleScript Editor
  • Next by thread: Re: 'log' command results in AppleScript Editor
  • Index(es):
    • Date
    • Thread