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:///" ?
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
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
://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
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
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
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:
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?
--
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
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
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
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
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
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
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
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
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?
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
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
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
20 matches
Mail list logo