- Code: Select all
tell application "Camino"
Open URL "www.myURL.com/etc.."
end tell
As it is, I have to use Firefox which is scriptable. Camino is always running on my machine, and Firefox is not a quick starter.
AppleScript AddressModerator: Camino Developers
18 posts
• Page 1 of 2 • 1, 2
I'd like to see a foot in the door of AppleScriptability; i.e., that Camino at least respond to a request:
As it is, I have to use Firefox which is scriptable. Camino is always running on my machine, and Firefox is not a quick starter. Camino is scriptable, too.
Problem is, there's a weird bug -- at least, I consider it a bug -- that prevents Camino from responding to AS commands while simultaneously being able to handle Macromedia Director content. If you remove the Location.rsrc file from Camino.app/Contents/Resources/English.lproj/ AppleScript will then work, but you won't be able to view Director content. I haven't seen anything that I know to be Director content in about five years, so the choice was easy for me... cl Doesn't seem to work, unfortunately. Even this simple script returns an error:
Replacing "Camino" with "Firefox" gets the expected result. AppleScript support is still deficient.
but you can try this:
Great stuff eccoana, and thanks - "open location" is recognized, but as you said, without a Camino dictionary, you really can't do much except guess what commands its supports. I'll switch to Firefox for this project - it renders the site I'm trying to interact with better as well. Come to that, with the slow progress being made on Camino (because so few, dedicated and skillful as they are, are working on it), perhaps it's time to switch. Too bad Apple seems to have abandonned Safari.
Use Script Editor to open Camino's dictionary and you'll find all you could ever want to know about Camino's script support.
cl anything changed from the nightly (0125) I'm using? the dictionary says a lot but almost none of the commands does work
Howdy, Hmm... when I try to open the dictionary is Script Editor I get nothing! Could this be related to the MacroMedia bug mentioned above? I'm using the G4 Optimized 2/12 build. Good Luck, Herb Schulz Yes, that's what the bug is (bug 184449); you have to remove the Localized.rcsc file in order to open the dictionary with script editor.
And now I can continue with the script I was working on in Camino (I really don't like Firefox except on my PC where it pulverizes IE) Howdy,
Wow, removing the Localized.rsrc file works wonderfully. Now I've re-written the Plug-in script for Address Book that gives you a CM when pointing at an address to show the location on maps.google.com; see MacOSXHints.com. It was written for Firefox but can very simply be adapted to Camino: change the lines GetURL .... activate to activate open url .... and all the occurances of the word Firefox to Camino, just to get things right. Save it as a script calling it "Get Map of (Camino)", place it in "~/Library/Address Book Plug-ins" and enjoy it! Actually, I don't know why the activate didn't come first in the original. Good Luck, Herb Schulz
True. I also got the Google Maps in Camino working - just a bit different from yours. Now, I'm looking for some way in AppleScript to deal with tabs in Camino. There's nothing about tabs in the dictionary, and if you Get URL "http://www.yourChoice.com/", the activate command doesn't bring it frontmost. A viable alternative would be open a new window in front of whatever is open, but there doesn't seem to be a command to do that either. This code snippet, for example, only works if the script creates a fresh, tabless window (i.e., no windows are open because if you default to tabbed browsing, this will just open a tab in the background in your current window.)
I'm using the lastest nighly, deleted the localized file but I always get 'NSCannotCreateScriptCommandError' if I use the 'Get URL' command. what have you done that it works for you?
Howdy, Replace "GetURL" with "open url". Good Luck, Herb Schulz
18 posts
Page 1 of 2 • 1, 2
Who is onlineUsers browsing this forum: No registered users and 1 guest |
|