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

Similar Threads
thread Thread Starter Forum Replies Last Post
Snow Leopard File Vault Question and Basic System Password Question & Time Machine? GordonGekko999 Mac Basics and Help 0 Oct 25, 2013 06:06 AM
Basic C Programming Question - Can anyone help? 007bond Mac Programming 3 Feb 6, 2013 12:15 PM
Very basic Applescript to run command bjbyers Mac Programming 1 Nov 27, 2012 03:03 PM
Basic? FCP X question DaveNinja Digital Video 2 Nov 6, 2012 04:40 PM
Really basic iMessage question! zachnelson iOS 6 5 Jun 16, 2012 06:26 AM

Forum Jump

All times are GMT -5. The time now is 08:10 AM.

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

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