Re: "try" broke???
Re: "try" broke???
- Subject: Re: "try" broke???
- From: Jeremy Roussak <email@hidden>
- Date: Tue, 06 Nov 2012 23:06:03 +0000
Robert,
Two points spring to mind:
1. You can't delete the file because it's on a CD, which is probably (definitely?) read-only.
Jeremy
On 6 Nov 2012, at 22:26, Robert Poland < email@hidden> wrote: Hi,
Running from Smile AND Applescript Editor, when pointed at a CD the following script errors out and won't run;
tell application "Finder" activate tell window 1 -- clears out Finder idiosyncrasies tell application "Finder" -- used here and at end set winTarget to target of front window as alias end tell set fileList to list folder winTarget with invisibles try if fileList contains ".DS_Store" then delete item ".DS_Store" end if end try end tell end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden