At 12:00 PM -0600 12/19/08, john darnell wrote:
>I am trying to write a simple script to delete a file. The script looks
>like this:
>
>set firstfile to "Macintosh HD:Users:PRG03:Library:Preferences:Suitcase
>Preferences:FontTrackingFile"
>if file firstfile exists then
> set myresult to delete firstfile
>end if
tell application "Finder"
set myFile to file "Macintosh HD:Users:PRG03:Library:Preferences:Suitcase Preferences:FontTrackingFile"
delete myFile
end tell
The Finder manages files, not AppleScript itself.
Jon