RE: Launching a local file in the default browser

2003-08-18 Thread FlexibleLearning
The Original: send "file:///" tPath to program "Finder" with "GURLGURL" Ken wrote: I tried it without the "file:///" in OS X as well as with other variations with less than three slashes. All did nothing. Perhaps it's the fact they are "/"-delimited paths that they require "file:///" ?

RE: Launching a local file in the default browser

2003-08-18 Thread Ken Ray
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, August 18, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: RE: Launching a local file in the default browser The Original: send file:/// tPath to program Finder with GURLGURL Ken wrote: I tried it without

RE: Launching a local file in the default browser

2003-08-18 Thread Alain Farmer
Hello, Here's some help : The following puts up a compiler error... get send open file tURL to Finder do it as AppleScript put the result You are not quoting your arguments. Try this : put quote tURL quote into tURL put quote Finder quote into tAPP get send open file

RE: Launching a local file in the default browser

2003-08-17 Thread Ken Ray
://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, August 15, 2003 4:50 PM To: [EMAIL PROTECTED] Subject: Re: Launching a local file in the default browser Ken suggests that this syntax works for Macs... send file

Re: Launching a local file in the default browser

2003-08-17 Thread Brian Yennie
I tried it without the file:/// in OS X as well as with other variations with less than three slashes. All did nothing. Perhaps it's the fact they are /-delimited paths that they require file:/// ? I would suspect this is true. file:// (with two colons) is really the proper protocol, as it

Re: Launching a local file in the default browser

2003-08-15 Thread Brian Yennie
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Yennie Sent: Saturday, August 09, 2003 1:49 AM To: [EMAIL PROTECTED] Subject: Re: Launching a local file in the default browser tell application Finder open location http://www.apple.com; end tell ... do as AppleScript of course Yep, the same ol

Re: Launching a local file in the default browser

2003-08-15 Thread Richard Gaskin
Ken Ray wrote: Richard, you posted this to the MC list last year under the header : Found it: You have to explicitely tell the Finder, like this: put tell application quoteFinderquotecropen quote \ tFilePath quotecrend tell into s do s as AppleScript See:

Re: Launching a local file in the default browser

2003-08-15 Thread Richard Gaskin
Brian Yennie wrote: If there's not a better way, you could work around this by creating a dummy HTML file that just redirects the browser to the correct file. That'll get you in the right app, *then* open the file. But how to get the default browser so I can obtain its creator code? --

Re: Launching a local file in the default browser

2003-08-15 Thread Ben Rubinstein
on 9/8/03 7:13 am, Richard Gaskin wrote Yep, the same ol' question: how do I launch a local file in the default browser on Mac OS X? And for future reference: Where is the definitive answer archived? Richard, Probably too late because I've just been catching up with a bunch of mailing

RE: Launching a local file in the default browser

2003-08-15 Thread Ken Ray
Ben, If you don't care about the file type/creator, you may be able to get away with nullifying those, and asking the Finder to open the URL - but you'll still have to decide how many slashes to use. Actually, it seems that it doesn't matter if you tell the Finder to open the URL; three

Re: Launching a local file in the default browser

2003-08-15 Thread FlexibleLearning
Ken suggests that this syntax works for Macs... send "file:///" tPath to program "Finder" with "GURLGURL" but is the "file:///" actually necessary? I understood that send tPath to program "Finder" with "GURLGURL" works fine on both flavours. Not sure whether "/" has to be replaced by ":" as

Re: Launching a local file in the default browser #3

2003-08-14 Thread Brian Yennie
FWIW, there's also this nugget: ~/Library/Preferences/com.apple.internetconfig.plist You can also dig around in: ~/Library/Preferences/LaunchServices.plist It seems that you can use these to find the actual applications assigned to various file formats. Brian

Re: Launching a local file in the default browser #3

2003-08-14 Thread sims
At 9:45 +0200 8/9/03, sims wrote: If I use: set this_item to ¬ alias Macintosh HD:Users:jimsims:Pictures:iPhoto Library:2002:10:29:taufeg.jpg tell application Internet Explorer open this_item end tell A file which I created with ColorIt or PhotoShop will launch with the indicated browser. I

Re: Launching a local file in the default browser

2003-08-14 Thread Richard Gaskin
sims wrote: If I use: set this_item to ¬ alias Macintosh HD:Users:jimsims:Pictures:iPhoto Library:2002:10:29:taufeg.jpg tell application Internet Explorer open this_item end tell A file which I created with ColorIt or PhotoShop will launch with the indicated browser. I suspect that

Re: Launching a local file in the default browser

2003-08-14 Thread Brian Yennie
Er... I guess I should probably get some sleep: my solution has this problem also for files that don't normally open in a browser. If there's not a better way, you could work around this by creating a dummy HTML file that just redirects the browser to the correct file. That'll get you in the

Re: Launching a local file in the default browser

2003-08-11 Thread Scott Rossi
On 8/9/03 9:04 AM, Richard Gaskin [EMAIL PROTECTED] wrote: If there's not a better way, you could work around this by creating a dummy HTML file that just redirects the browser to the correct file. That'll get you in the right app, *then* open the file. But how to get the default browser so

Re: Launching a local file in the default browser

2003-08-09 Thread Brian Yennie
tell application Finder open location http://www.apple.com; end tell ... do as AppleScript of course Yep, the same ol' question: how do I launch a local file in the default browser on Mac OS X? And for future reference: Where is the definitive answer archived?

Re: Launching a local file in the default browser #2

2003-08-09 Thread sims
At 9:45 +0200 8/9/03, sims wrote: If I use: set this_item to ¬ alias Macintosh HD:Users:jimsims:Pictures:iPhoto Library:2002:10:29:taufeg.jpg tell application Internet Explorer open this_item end tell A file which I created with ColorIt or PhotoShop will launch with the indicated browser. I

Re: Launching a local file in the default browser

2003-08-09 Thread sims
Yep, the same ol' question: how do I launch a local file in the default browser on Mac OS X? And for future reference: Where is the definitive answer archived? Richard Gaskin If I use: set this_item to ¬ alias Macintosh HD:Users:jimsims:Pictures:iPhoto Library:2002:10:29:taufeg.jpg tell

Re: Launching a local file in the default browser #3

2003-08-09 Thread Richard Gaskin
Brian Yennie wrote: FWIW, there's also this nugget: ~/Library/Preferences/com.apple.internetconfig.plist You can also dig around in: ~/Library/Preferences/LaunchServices.plist It seems that you can use these to find the actual applications assigned to various file formats. Do those