• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FW: Questions questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: Questions questions...


  • Subject: FW: Questions questions...
  • From: mjn <email@hidden>
  • Date: Tue, 12 Mar 2002 13:05:33 -0600

On 3/11/02 5:34 PM, "Marc K. Myers" <email@hidden> said something
like:

> It could be a bunch easier than the way you were trying to do it. Try
> it this way:
>
> tell application "Finder"
> set theFldr to (startup items folder)
> set delList to files of theFldr whose creator type starts with "NDS "
> if delList is not {} then
> delete delList
> empty trash
> end if
> end tell
>
> You were trying to get "file creator", which is not a file property,
> from a list, which doesn't have properties at all. This way you're
> looking for "creator type" only in files (items include folders), and
> you're looking in a folder, which is a Finder object, not in a list.

I tried this verbatim (I encapsulated it in a "on run" block) but I am
getting an execution error...

"Can't get every file of startup items folder." In the script editor, this
is the section of text which is highlighted:

"files of theFldr whose creator type starts with "NDS ""

I have seen this error before when trying "every item of" to access the same
folder. Anyone have any ideas? Seems to be a problem with my version of
Applescript...

MacOS 9.2.2, Applescript 1.7

Perhaps it makes a difference or perhaps not but I am launching this
Applescript from a remote volume. I have copied locally and had similar
results.

I guess I am uncertain why it is not working...seems odd.

Thanks for the attention. I look forward to your responses. Thanks again
all.

-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.

  • Prev by Date: form validation
  • Next by Date: Re: internet explorer applescript ....
  • Previous by thread: Re: Questions questions...
  • Next by thread: Re: Questions questions...
  • Index(es):
    • Date
    • Thread