Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TheMTtakeover

macrumors 6502
Original poster
Aug 3, 2011
471
7
Code:
tell application "Terminal"
	activate
	do script "open -a "Activity Monitor""
end tell

How to make the above work? It doesn't like the dual set of quotation marks but I need because Activity Monitor is two words. I'm sure there is a very simple fix for this, I just don't know much about AppleScript.

----------

Sorry solved.

Code:
tell application "Terminal"
	activate
	do script "open -a Activity' 'Monitor"
end tell
 
Code:
tell app "Activity Monitor" to launch
That's plain ordinary AppleScript. You can copy and paste it into AppleScript Editor directly, and run it. Terminal.app doesn't need to be involved.
 
Code:
tell app "Activity Monitor" to launch
That's plain ordinary AppleScript. You can copy and paste it into AppleScript Editor directly, and run it. Terminal.app doesn't need to be involved.

Yeah, go with this.

You don't need terminal in there.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.