Re: Delete an application
Re: Delete an application
- Subject: Re: Delete an application
- From: KOENIG Yvan <email@hidden>
- Date: Mon, 19 May 2008 11:13:49 +0200
Le 19 mai 2008 à 07:01, SVV Satyanarayana a écrit :
I am trying to delete an application "Image Capture" from my system.
But it is throwing error with following script.
try
tell application "Finder"
delete "/Application/Image Capture.app"
end tell
on error
display dialog "Cannot delete Image Capture application"
end try
When I traced the error, its due to space between "Image" and
"Capture.app"
I don't want to use "do shell script" and remove.
How to achieve it?
Satyanarayana.
Maybe you may delete it by hand from the Finder ;-)
As far as I know, what you pass as a path to the Finder is, from its
point of view, a string, not a path.
a better way would be:
try
set p2a to path to applications folder as Unicode text
tell application "Finder"
delete file (p2a & "Image Capture.app")
end tell
on error
display dialog "Cannot delete Image Capture application"
end try
Yvan KOENIG (from FRANCE lundi 19 mai 2008 11:13:32)
_______________________________________________
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