Geez, that seems like a lot of pain. Why not just use this?
using terms from application "Quıcĸsıɩⅴεʀ"
on open files weblocFile
if type identifier of (info for weblocFile) is
"com.apple.web-internet-location" then
tell application "Finder" to set weblocURL to the location of
(weblocFile as alias)
-- code to do something useful with weblocURL goes here --
end if
end open files
on get direct types
return {"NSFilenamesPboardType"}
end get direct types
end using terms from
On Thursday, January 30, 2014 7:06:50 AM UTC-5, 1.61803 wrote:
>
> On Sunday, January 19, 2014 11:52:14 PM UTC+1, 1.61803 wrote:
>
>> On Sunday, January 19, 2014 11:36:35 PM UTC+1, Rob McBroom wrote:
>>>
>>> http://hints.macworld.com/article.php?story=20040728185233128
>>
>> I also found http://macscripter.net/viewtopic.php?id=16794 but still
>> didn't look into it.
>>
>
> using terms from application "Quıcĸsıɩⅴεʀ"
>
> on open files weblocFile
>
> if type identifier of (info for weblocFile) is
> "com.apple.web-internet-location" then
> set weblocData to read weblocFile
>
> if weblocData begins with "bplist" then ¬
> set weblocData to do shell script "plutil -convert xml1 " &
> (quoted form of POSIX path of weblocFile) & " -o -"
>
> tell application "System Events"
> set weblocDoc to make new property list item with properties
> {text:weblocData}
> set weblocURL to value of property list item "URL" of weblocDoc
> end tell
> end if
>
> end open files
>
> on get direct types
> return {"NSFilenamesPboardType"}
> end get direct types
>
> end using terms from
>
--
You received this message because you are subscribed to the Google Groups
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/groups/opt_out.