Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Display realtime log files automatically' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display realtime log files automatically
Authored by: lpp on May 26, '04 12:47:01PM
Here's the same thing, but targetting the Console.app which is in /Applications/Utilities:

on adding folder items to this_folder after receiving these_items
	try
		repeat with i from 1 to number of items in these_items
			set this_item to item i of these_items
			
			tell application "Finder"
				set theName to the name of this_item as string
			end tell
			
			tell application "Console"
				activate
				open (quoted form of POSIX path of this_folder) & theName
			end tell
		end repeat
	on error error_message number error_number
		if the error_number is not -128 then
			tell application "Finder"
				activate
				display dialog error_message buttons {"Cancel"} ¬
					default button 1 giving up after 120
			end tell
		end if
	end try
end adding folder items to
I included the POSIX path conversion bit

[ Reply to This | # ]