Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > applescripting in OS X

applescripting in OS X
Thread Tools
Senior User
Join Date: Nov 1999
Location: The workshop of the TARDIS...
Status: Offline
Reply With Quote
Apr 23, 2001, 05:03 PM
 
Anyone know what is scriptable or not? I want to be able to start and stop classic from an applescript on my desktop, but I'm not sure if the system prefs are scriptable. Even so, how would I go about doing such a trick?

JB

------------------

"Thy strength is that of many fearsome Hibabongos."
-King Osterfair, _Dragon Warrior II_
---------------------------
"Time will tell. It always does."
-The Doctor
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Apr 24, 2001, 11:49 PM
 
Can't you just hit "record" and see if it works?
The OS is incomplete, so its AppleScript support probably is too...


------------------
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
May 18, 2001, 10:46 PM
 
If you open the (OS X) Script Editor application and choose 'Open Dictionary' from the File menu, you'll (eventually) get a list of all scriptable applications on your disk.

Unfortunately, you'll notice that System Preferences (like most of the apps that come out of Apple!) is NOT scriptable (way to go, Apple!. <sigh> )

However, you can launch Classic easily enough by having your script open a Classic application. This will launch Classic if not already running.

However, the same can't be said about quitting Classic. I expect that 'tell application "Finder" to quit' will kill the OS X Finder. the only other one I can think of is unsafe, and involves killing 'Classic' by pid, assuming you can find it in the ps
Gods don't kill people - people with Gods kill people.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:09 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2