Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 12, 2012, 09:14 PM   #1
TheMTtakeover
macrumors 6502
 
Join Date: Aug 2011
Very Basic AppleScript Question

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
__________________
#TeamTaji
TheMTtakeover is offline   0 Reply With Quote
Old Dec 12, 2012, 11:25 PM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
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.
chown33 is offline   0 Reply With Quote
Old Dec 13, 2012, 04:45 AM   #3
charlieegan3
macrumors 68020
 
charlieegan3's Avatar
 
Join Date: Feb 2012
Location: U.K
Quote:
Originally Posted by chown33 View Post
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.
__________________
www.charlieegan3.com
charlieegan3 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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

Forum Jump


All times are GMT -5. The time now is 08:21 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC