Subject: | |
From: | |
Reply To: | |
Date: | Wed, 26 Feb 2014 22:31:48 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Though you may have to concern yourself with how to do URL encoding if you
used it, I'll add that the generic AppleScript term for "go to this
address in a browser" is open location.
tell app "YourBrowserHere"
open location "http://www.apple.com"
end tell
--
Sincerely,
Joshua See
On 2/26/14, 1:49 PM, "Christopher Stone" <[log in to unmask]>
wrote:
>On Feb 26, 2014, at 13:06, Walter Ian Kaye <[log in to unmask]>
>wrote:
>> Hey folks, I'm writing a script for Web browsers, but since I'm on an
>>older system I cannot run newer browsers. I've assembled a long list,
>>and have managed to tackle all but the following four, which appear to
>>not have any dictionary:
>______________________________________________________________________
>
>Hey Walter,
>
>Firstly - you should tell us what system. :)
>
>I'd look at two methods.
>
>--------------------------------------------------------------------------
>-----------------
>-- From the shell:
>--------------------------------------------------------------------------
>-----------------
>open -a opera /Users/chris/Desktop/Bookmarks.html
>open -a opera ~/Desktop/Bookmarks.html
>
>open -a opera "/Users/chris/Desktop/Bookmarks Two.html"
>open -a opera ~/"Desktop/Bookmarks Two.html"
>--------------------------------------------------------------------------
>-----------------
>
>
>--------------------------------------------------------------------------
>-----------------
>-- Using Vanilla Applescript:
>--------------------------------------------------------------------------
>-----------------
>set _file to alias ((path to desktop as text) & "Bookmarks.html")
>
>tell application "Finder"
> open _file using application file id "OPRA"
>end tell
>--------------------------------------------------------------------------
>-----------------
>
>--
>Best Regards,
>Chris
|
|
|