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