Re: Newbie or ??
Re: Newbie or ??
- Subject: Re: Newbie or ??
- From: Jon Pugh <email@hidden>
- Date: Tue, 15 Jul 2003 08:14:00 -0700
At 4:11 PM +0200 7/15/03, Jacques Lacroute wrote:
>
Do I take it that if I want to do something with these files (ie delete them
>
) I will also have to use the shell ?
You do not HAVE to use the shell. You can if you want to.
This seems to work for me:
list folder file "Spiff:" with invisibles
You'll need to keep the folder and file names separately and concatenate them on the fly. You can then use the Finder to trash the file or Jon's Commands to deleteFile them.
tell app "Finder"
delete file (folder_path & file_name)
end tell
(For those of you wondering why some people use _ on their variable names, it's to make the name unlike anything in any dictionary, so that there *can be* no conflicts. You can use folder_path and file_name to get the same effect.)
Jon
_______________________________________________
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.