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 > Scripting extension sets?

Scripting extension sets?
Thread Tools
Phaedrus
Guest
Status:
Reply With Quote
Oct 16, 2000, 02:26 AM
 
I'm new to Applescript, but it floored me the first time I read about it. What a powerful addition to the Mac OS, hell, windows doesn't have anything this cool. Too bad more people don't know about it. Anyways, my question is about scripting Extensions. I can write a script to change my virtual memory settings, but I can't figure out how to change my extension set. I have a bad feeling that the Extension Manager control panel is not scriptable. Is it?



------------------
     
Mac Enthusiast
Join Date: May 2000
Location: Beirut, Lebanon
Status: Offline
Reply With Quote
Oct 16, 2000, 10:23 AM
 
No it isn't but you could do that with the location manager which is scriptable. Unless you want something dynamic...
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Oct 16, 2000, 10:30 AM
 
First, you can find out if any application (or control panel) is scriptable by choosing the 'Open Dictionary' option. If the application is displayed in the 'Open' dialog then it is scriptable (and you'll be able to see a list of the AppleScript commands it supports). If the application is not scriptable (as is the case with the Extension Manager) then it won't appear in the Open dialog.

Your simplest option is to get a copy of Conflict Catcher from Casady & Greene. It's like an Extension Manager on steroids and is scriptable:

Code:
Conflict Catcher Suite : Events supported by Conflict Catcher. Select Set: Select the specified startup set. Select Set string [Restart boolean] -- Should Conflict Catcher restart after selecting the set? About Conflict Catcher: Display Conflict Catcher’s about box. About Conflict Catcher Enable Startup File: Enables the specified startup file. Enable Startup File string folder string Disable Startup File: Disables the specified startup file. Disable Startup File string folder string Create System Report: Create a system report to the specified file. Create System Report file specification -- where to create the report
Alternatively, of course, you could write your own (at least in as much as moving items to/from the (disabled) folder) although you wouldn't be able to directly handle the startup control in AppleScript.

IMHO your question raises one of my biggest gripes with Apple. They should follow the old adage 'Eat your own dog food' and actually implement some of their own technologies in their own products. Imagine what you could do if every one of the standard Control Panels and Extensions that ships with the OS has some level of scriptability.

[This message has been edited by Camelot (edited 10-16-2000).]
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:00 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