revGoURL on 10.2.3
Richard Gaskin
ambassador at fourthworld.com
Tue Jan 6 01:10:37 EST 2004
Alex Rice wrote:
> On Jan 5, 2004, at 6:19 PM, Richard Gaskin wrote:
>>> How about:
>>> get shell("open /path/to/file.html")
>>
>> Same as "open location": if the file has a type code assigned it open
>> in
>> the assigned app.
>
> You are right. But does it really matter? Why not just go with the flow
> and let the creator codes do their job. ;-)
Because I make my help pages in GoLive, which is not what I want users to
view them in. :)
I used to set the creator code to MSIE to get around this, and it worked 99%
of the time until Safari came out. Now I strip the creator code Finder info
as part of my release process, and set Rev's fileType property to
"????????" when generating page from WebMerge on OS X so I can launch them
for preview. This was working until Apple yanked GURLGURL in Panther.
I'll replace the GURLGURL call with the newer AppleScript method, but it
would be nice to allow my Mac customers to set the file type to match their
HTML editing program while still being able to launch the file in a browser.
It's a small nice-to-have, and few will regret its absence, but after having
that capability it occurs to me that the whole conundrum of launching files
in the default browser is far more complicated than it needs to be on pretty
much every platform.
> with "open" if you want to force a particular app you can do this.
> Maybe applescript can also
>
> open -a /Applications/Safari.app /path/to/file.html
That works only if you have know which application the user has as their
default browser and what its path is. Altering the file by stripping the
creator code info seems necessary, more special-case code exclusively for OS
X.
If only NeXT programmers had liked Macs so much of the OS X transition would
be so much less cosly for the Mac community....:::sigh:::
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list