• 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: Search for a file on User's desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search for a file on User's desktop


  • Subject: Re: Search for a file on User's desktop
  • From: KOENIG Yvan <email@hidden>
  • Date: Tue, 3 Aug 2010 14:10:58 +0200


Le 3 août 2010 à 13:43, SHIVANK AGGARWAL, Noida a écrit :

Hi All,

I have the name of the file, I want to know whether the file exits on users desktop or not with its folder path.

Regards,

this simple code will give you the name of every items on the desktop.

set p2d to path to desktop

tell application "Finder"
	set files_on_desktop to name of every item of p2d
end tell

Yvan KOENIG (VALLAURIS, France) mardi 3 août 2010 14:10:38




_______________________________________________ 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: 
 >Search for a file on User's desktop (From: "SHIVANK AGGARWAL, Noida" <email@hidden>)

  • Prev by Date: Re: Search for a file on User's desktop
  • Next by Date: Re: List oddity
  • Previous by thread: Re: Search for a file on User's desktop
  • Next by thread: Show differences in two apple scripts.
  • Index(es):
    • Date
    • Thread