Re: Delete an application
Re: Delete an application
- Subject: Re: Delete an application
- From: Axel Luttgens <email@hidden>
- Date: Mon, 19 May 2008 12:53:48 +0200
On 19 mai 08, at 07:01, SVV Satyanarayana wrote:
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?
Since you're using the Finder, just make use of its way to refer to
files/folder; for example:
tell application "Finder"
delete application file "Image Capture.app" of folder "Applications"
of startup disk
end tell
But... are you sure this is really what you want to do?
Axel
_______________________________________________
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