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
470
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
 

chown33

Moderator
Staff member
Aug 9, 2009
10,679
8,303
A sea of green
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.
 

charlieegan3

macrumors 68020
Feb 16, 2012
2,394
17
U.K
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.