I hope that you are all having a good weekend.
I wonder if anyone could shed some light on the following please: I have my standalone saved on my desktop on Mac. The path to the standalone is:
/Users/user1/Desktop/Eample.app
When running the following script it returns 'can't delete that file'.
I have ensured that the Example.app file is not running and is closed.
Code: Select all
on mouseup
put specialfolderpath(desktop) into t_pre
set the defaultfolder to t_pre
put t_pre & "/" & "Example.app" into t_file_delete
-- attempt 1
delete file t_file_delete
put the result
-- attempt 2
delete file specialFolderPath(desktop) & "/Example.app"
put the result
-- attempt 3
delete folder t_file_delete
put the result
-- attempt 4
delete URL ("file:" & t_file_delete)
put the result
---
end mouseup
Many Thanks
Hadleigh