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 > Applications > itunes applescript and internet explorer

itunes applescript and internet explorer
Thread Tools
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status: Offline
Reply With Quote
Sep 11, 2003, 09:48 PM
 
why does applescript ask where internet explorer is when I try to run a script in itunes?
Mick
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 12, 2003, 04:44 AM
 
Originally posted by becca:
why does applescript ask where internet explorer is when I try to run a script in itunes?
Mick
If the script has IE's name wrong, or IE is not in one of the usual places then AppleScript can't find it (by name) - -so it has to ask you.
You know it makes sense. ☼ ☼ ☼ Growl.
     
becca  (op)
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status: Offline
Reply With Quote
Sep 12, 2003, 03:54 PM
 
Do I need IE to use applescripts?
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 12, 2003, 07:01 PM
 
Originally posted by becca:
Do I need IE to use applescripts?
No - The thing is that when you are writing an applescript you have specifically state which application you are manipulating (unless you are just opening a URL)
- It sounds like the developer of the Script will have specified IE. If you have the source of the script you can probably rewrite it so that it uses Safari (or whatever your preferred browser is.)
You know it makes sense. ☼ ☼ ☼ Growl.
     
becca  (op)
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status: Offline
Reply With Quote
Sep 12, 2003, 08:07 PM
 
these where scripts from apple. I think there are about 15 or 20. Why would they write them so you had to use IE?
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Sep 12, 2003, 08:24 PM
 
Because they're old, and IE used to be the OS's default browser, probably...
[Wevah setPostCount:[Wevah postCount] + 1];
     
becca  (op)
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status: Offline
Reply With Quote
Sep 12, 2003, 09:12 PM
 
well can't I change them to work without IE?
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Sep 13, 2003, 12:09 AM
 
If Script Editor can open the script, it can be changed as you wish. Drag the script's icon over Script Editor- located in /Applications/Applescript. If it opens, it can be edited.

Look through it line by line and there will be a line that says "tell application "Internet Exploror". Change Internet Explorer to Safari. There may be several places you need to make that change. Make sure you keep the application name in double quotes.

There is a button at the top of the Scipt Editor window with your script in it. Click on run to test it. If it works, save it and you are set. If not do not save it and check back here with what you found in the script.

Craig
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 13, 2003, 04:55 AM
 
What scripts are these - post a link
You know it makes sense. ☼ ☼ ☼ Growl.
     
becca  (op)
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status: Offline
Reply With Quote
Sep 13, 2003, 03:44 PM
 
you know I can't remember where I got them.
I almost forgot I had them. I'm just going to trash them and forget it.
Thanks
mick
     
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status: Offline
Reply With Quote
Sep 13, 2003, 06:52 PM
 
Originally posted by Diggory Laycock:
What scripts are these - post a link
http://www.apple.com/applescript/itunes/index.html
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 14, 2003, 03:03 AM
 
Here's an example of how to fix them:

I'm using the "CDDB Search By Artist" script:

Open the script in Script Editor

Find the following:

Code:
tell application "Internet Explorer" Activate ignoring application responses GetURL search_URL end ignoring end tell
and replace it with the following:

Code:
open location search_URL


Nice and easy.
You know it makes sense. ☼ ☼ ☼ Growl.
     
becca  (op)
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status: Offline
Reply With Quote
Sep 15, 2003, 03:52 PM
 
this is what I found:

tell application "Safari"
«event WWW!ACTV»
ignoring application responses
open location search_URL
end ignoring
end tell

Thats the only reference to a web browser I found
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 15, 2003, 07:31 PM
 
Originally posted by becca:
this is what I found:

tell application "Safari"
«event WWW!ACTV»
ignoring application responses
open location search_URL
end ignoring
end tell

Thats the only reference to a web browser I found
you can replace that entire tell block with one line:

open location search_URL
You know it makes sense. ☼ ☼ ☼ Growl.
     
   
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:39 AM.
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