So where did «class bmrk» come from?
So where did «class bmrk» come from?
- Subject: So where did «class bmrk» come from?
- From: Shane Stanley <email@hidden>
- Date: Tue, 13 Oct 2009 17:35:50 +1100
- Thread-topic: So where did «class bmrk» come from?
I noticed that some of my droplets weren't working properly in Snow Leopard,
including some written in ASStudio (and FaceSpan). I just realised the
common element: they all failed on bundles.
The basics were pretty simple, but I found that this:
on open theFiles
set theFile to (item 1 of theFiles)
set theFilePath to theFile as text
display dialog theFilePath
end open
includes the trailing colon pre-Snow Leopard, but drops it with Snow
Leopard. Curious, I tried choose file:
set theFile to choose file
set theFilePath to theFile as text
display dialog theFilePath
This time the colon was there in SL, so presumably nothing has changed in
the way aliases are coerced to text. So then I tried:
on open theFiles
set theFile to (item 1 of theFiles)
set openClass to (class of theFile)
display dialog (openClass as text)
end open
And the result was "«class bmrk»" (the result is the same for non-bundles,
too).
So who killed the aliases, and how about a formal introduction for
(presumably) bookmarks? Any of the Chrises care to comment?
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden