Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript's "log" won't log

AppleScript's "log" won't log
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2009
Status: Offline
Reply With Quote
Jan 5, 2009, 09:38 AM
 
Hi there,

here's some of my code... the problem is, as soon as I'm in the tell application block, the log command won't log to the Debugger Console. Do I need to tell any application to log?

Code:
on buildArchive() log "Now building archive. WOHOOO!" tell application "Finder" log "now telling Finder what to do"
Thanks a lot!

Georg
     
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Jan 5, 2009, 08:26 PM
 
it may be sending the log command to the finder which does not know what to do with it.

try wrapping it in
tell application "Script Editor" (or whatever app you are using)

like:
tell application "Finder"
tell application "Script Editor"
log "blah"
end
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
zro
Mac Elite
Join Date: Nov 2003
Location: The back of the room
Status: Offline
Reply With Quote
Jan 6, 2009, 09:38 AM
 
I'd guess your buildArchive function isn't being run.

Try

Code:
tell application "Finder" to log "Hello log!"
and see what you get.
end try.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:52 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2