MACSCRPT Archives

November 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 27 Nov 2009 17:45:26 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
At 10:33 -0500 27/11/09, Emmett Gray wrote:

>Is this a bug? Trying this in 10.6.2
>
>tell application System Events to set myProps to properties of alias foo
>visible of myProps > true/false
>package folder of myProps > "Can't get" error
>Other properties seem randomly accessible or not: busy status, 
>stationery don't work either; all text properties seem OK.
>
>However:
>tell application System Events to set isPkg to package folder of alias foo
>isPkg > true/false
>and so too for busy status, stationery, etc. when retrieved one-at-a-time

Without you give us valid script it's impossible to say.  This, and 
similar things, work fine in 10.4.11 :

         tell application "System Events"
           set _f to alias "Mac Mini:Applications:TextEdit.app:"
           set _properties to _f's properties
           {package folder, visible, busy status, stationery} Â
             of _properties
           --=> {true, true, false, false}
         end tell

JD

ATOM RSS1 RSS2