• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delete an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Delete an application (From: SVV Satyanarayana <email@hidden>)

  • Prev by Date: Re: Delete an application
  • Next by Date: Re: Delete an application
  • Previous by thread: Re: Delete an application
  • Next by thread: Re: Delete an application
  • Index(es):
    • Date
    • Thread