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

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