Re: Creator type of packaged app bug?
Re: Creator type of packaged app bug?
- Subject: Re: Creator type of packaged app bug?
- From: Shane Stanley <email@hidden>
- Date: Tue, 08 Jul 2003 15:54:53 +1000
On 8/7/03 1:39 PM +1000, Paul Berkowitz, email@hidden, wrote:
>
Therefore perhaps it was Shane who may have construed my original "SE 2.0
>
beta" typo, quite understandably, as Script Editor rather than as System
>
Events. We've probably been at cross-purposes the whole time.
No, I knew what you meant.
>
But if I try to compile this script:
>
>
tell app "Finder" to get folder "Users" of disk "OS X HD"
>
>
'folder "' (including the " quotes after 'folder') is selected with the
>
error:
>
>
A " can't go after this property.
Works fine here.
>
>
If I try to compile this:
>
>
tell app "Finder" to get every folder [of] startup disk
>
>
I get this error:
>
>
Expected class name but found property.
I get a normal list.
>
>
So, AS 1.9.1 thinks that 'folder' is a property, not an element of the
>
Finder, OMM. Hmmm. This actually compiles:
>
>
tell application "Finder" to get folder of startup disk
>
>
but of course errors if run ("Can't get folder of startup disk").
Here, I get: folder "" of application "Finder"
>
[Side issue:]
>
>
Note that in the script immediately above the result is not
>
>
folder "Users" of disk "OS X HD" of application "System Events"
>
>
naturally, since System Events apparently doesn't use the Finder-type
>
terminology. It's
>
>
folder "OS X HD:Users" of application "System Events" -- no final colon
>
>
at least in Script Editor. (In Script Debugger it's just
>
>
folder "OS X HD:Users"
>
>
which may well be an SD context usage, I've forgotten.)
>
>
Using the full path but preceded with 'folder' instead of following with a
>
colon as 'alias' does is quite peculiar - although sort of logical but
>
confusing. A new quirk for AppleScript.
>
>
[End of side issue.]
Yep.
>
>
Does anyone have any ideas what might be making my Finder see 'folder' as
>
property instead of an element (class), where Shane doesn't get this even
>
though he has System Events 1.2 beta installed? Does anyone else see the
>
same thing?
>
>
OS 10.2.6/AS 1.9.1 with System Events 1.2 beta. b&w G3 350/784 MB RAM.
I smell a terminology conflict somewhere...
--
Shane Stanley, email@hidden
_______________________________________________
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.