Re: Questions questions...
Re: Questions questions...
- Subject: Re: Questions questions...
- From: mjn <email@hidden>
- Date: Tue, 12 Mar 2002 16:37:59 -0600
On 3/12/02 4:27 PM, "Kai Edwards" <email@hidden> said something like:
>
Hmmm... Marc's suggestion seems to work fine on my machine. My Script
>
Editor's Event Log shows this:
>
>
----------------------------
>
tell application "Finder"
>
get startup items folder
>
--> folder "Startup Items" of folder "System Folder" of startup disk
>
get every file of folder "Startup Items" of folder [NO BREAK]
>
"System Folder" of startup disk whose creator type starts with "NDS "
>
--> {}
>
end tell
>
----------------------------
>
- which is as I'd expect it (since my Startup Items folder contains no
>
files whose creator type starts with "NDS " - hence the empty list).
>
>
Could this be a configuration thing? Which system version are you running -
>
and which AppleScript version? (Not that I claim to know much about the
>
idiosyncrasies of one version compared to another - but it might give us a
>
starting point.)
>
>
I've heard that some versions of the Finder can have trouble with certain
>
forms of the 'whose' filter - but I don't have any more specific info on
>
this.
It looks as though it is either a "whose" filter problem or Applescript is
not understanding "creator type". I commented out "whose creator type is
"NDSo"" and the script ran fine (except for not being able to delete the
trash because of locked items).
Is there another way to check the creator value? If at all possible, I'd
like to make this as Applescript generic as possible. The intent here is to
have this run on machines from 8.1-9.2.2 if possible. The more
Applescript/OS independent the script is, the better.
This is Applescript 1.7 base and a fresh install of 9.2.2.
Progresss is progress. Thanks for all of the input. :)
-mjn
_______________________________________________
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.