Here is just an another Example..

dim creatorStr, oldCreatorStr as string
dim f as folderitem


f = DesktopFolder.child("index.html")

if f <> nil and f.exists then
oldCreatorStr = f.MacCreator

if Safari Selected then <<---- You have to fix this ..
f.MacCreator = "sfri"
else if FireFox is selected <<---- You have to fix this ..
f.MacCreator = "MOZB"
end if
f.launch

f.MacCreator = oldCreatorStr

end if 'exists





Sven E
-----------------------
REALbasic 2007R1 OS X 10.4.8 Intel and 10.4.6 PPC
SEEdit Maxi THE XHTML EDITOR FOR MACINTOSH
http://www.seedit.info


On 2007-03-09, at 19:48, Gary Edge wrote:

> Come on... that's too easy!
>
> Thanks
>
> Gary
>
> On Mar 9, 2007, at 1:34 PM, Kirk Gray wrote:
>
>> In REALbasic:
>>
>>      ShowURL "file:///Users/me/Desktop/thefile.html"
>>
>>
>> Kirk
>>
>>
>>> On Mar 9, 2007, at 11:23 AM, Gary Edge wrote:
>>>
>>> Is there a quick and easy way to to Safari or Firefox to open and
>>> display a local web page? I'm not familiar with the use and
>>> requirements of AppleScript.
>>>
>>> Gary
>>




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to