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 > Controlling browser

Controlling browser
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2001
Status: Offline
Reply With Quote
Oct 31, 2001, 08:41 AM
 
I'm creating a CD-ROM for a client, and 3 of the tasks on this project are quite challenging. I'm wondering if anyone reading this might be able to give me some advice.

1) I need to edit the user's PPPoE configuration settings (name/password), and then activate the network connection.

2) I need to be able to add 3 URLs to the user's IE bookmarks listing.

3) I need to be able to detect that a user has clicked a button on a web-page, and if that button is pressed: A) quit the browser, B) launch another application.

I think item #1 can probably be done via a Unix shell script. I'm not sure about #2 and #3 - - can anyone tell me if AppleScript could do this type of thing?

     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Oct 31, 2001, 10:11 AM
 
The first should be doable via a shell script, though I don't know exactly how it would be done.

The second is probably best suited to something like Perl. As I recall, IE's bookmarks file is HTML-like, so there's not much of an issue there.

The third option, though, won't be easy and might be impossible.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Oct 31, 2001, 01:38 PM
 
Originally posted by Rob Gould:
<STRONG>1) I need to edit the user's PPPoE configuration settings (name/password), and then activate the network connection.</STRONG>
SystemConfiguration.framework is the API to do this.

<STRONG>2) I need to be able to add 3 URLs to the user's IE bookmarks listing.</STRONG>
As the previous poster said, it's a HTML file in ~/Library/Explorer/Favorites.html

<STRONG>3) I need to be able to detect that a user has clicked a button on a web-page, and if that button is pressed: A) quit the browser, B) launch another application.</STRONG>
If you can use the Help Viewer application instead, you can do this. I don't think you can from IE, though. Write a custom app!
     
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Oct 31, 2001, 05:24 PM
 
1. Shell script

2. You can use an applescript and have it edit that file
/Library/Explorer/Favorites.html


3. Not possible. I don't think any browser passes that info on (would be considered a security issue).
I always use protection when fscking my Mac... Do you?
     
   
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 09:55 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