• 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
Questions questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions questions...


  • Subject: Questions questions...
  • From: mjn <email@hidden>
  • Date: Mon, 11 Mar 2002 15:19:50 -0600

I am attempting to write a script which will look at all of the files in
Startup items and delete any file whose creator matches "NDS".

I wrote something like this:

on run
tell application "Finder"
activate
set theFolder to startup items folder
set fileNames to (every item whose file creator contains "NDS") of
theFolder as list
repeat with myFile in fileNames
set delFile to (theFolder as string) & contents of myFile
delete delFile
end repeat
end tell
end run

But I keep getting errors about not being able to turn some things into
items or other things into strings.

Suggestions? Is there something blatantly stupid I have done here? Seems
to me this should be a bunch easier than it actually is...

Thanks

-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: mod documentation redux; [AppleMods] mod licence; etc
  • Next by Date: How do I get the date received and the date sent of a Mail message?
  • Previous by thread: mod documentation redux; [AppleMods] mod licence; etc
  • Next by thread: Re: Questions questions...
  • Index(es):
    • Date
    • Thread