Re: Script to get default browser? > Paul S.
Re: Script to get default browser? > Paul S.
- Subject: Re: Script to get default browser? > Paul S.
- From: Mr Tea <email@hidden>
- Date: Fri, 10 Jan 2003 11:54:24 +0000
This from Paul Skinner - dated 10-01-03 03.36 am:
>
set AppleScript's text item delimiters to "E:html\" = (
>
{
>
LSBundleIdentifier = \""
Hi, Paul. The above-quoted segment of your solution didn't survive the list.
Running the script caused an error that amounted to "can't get text item 2
of the-whole-darn-list-of-launch-services"
I copied the corresponding section out of the error message and the script
then worked... sort of.
Using your TID (or an unmangled version of it) gives the wrong result OMM,
namely "com.microsoft.explorer" - but adding a backslash & quote mark at the
beginning gives the expected result. Curious, that.
Philip Aker posted a similar sort of solution, using GREP instead of TIDs,
which is somewhat faster, so nyer-nyer-yah-boo-sucks to you. But thanks for
the input. I can't help but feel this is important stuff that I ought to
have at least a smidgin of knowledge about.
Cordially
Mr Tea
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.