 |
 |
itunes applescript and internet explorer
|
 |
|
 |
|
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status:
Offline
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status:
Offline
|
|
Do I need IE to use applescripts?
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
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.)
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status:
Offline
|
|
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
|
|
Because they're old, and IE used to be the OS's default browser, probably...
|
|
[Wevah setPostCount:[Wevah postCount] + 1];
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status:
Offline
|
|
well can't I change them to work without IE?
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
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
|
|
What scripts are these - post a link
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status:
Offline
|
|
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
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jul 2001
Location: Nashville Tn.
Status:
Offline
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|