MACSCRPT Archives

February 2014

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Walter Ian Kaye <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 26 Feb 2014 17:19:22 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
At 01:49 p -0600 02/26/2014, Christopher Stone didst inscribe upon an 
electronic papyrus:

>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.  :)

10.4 on PowerPC :)

(And oops, that last browser in my list was in the wrong list.)


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

Interestingly, when I tried these on iCab, the file opened as source(!).
(Telling iCab to open an alias worked properly though.)

This is why I need specific browsers tested....


thanks,
-Walter

ATOM RSS1 RSS2