• 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: Eject in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eject in Leopard


  • Subject: Re: Eject in Leopard
  • From: deivy petrescu <email@hidden>
  • Date: Sun, 11 Nov 2007 18:47:27 -0500


On Nov 9, 2007, at 11:17, Jay Louvion wrote:


Hi all,

Would some of you try to use AS commande to eject a disk and then post back
your results ?


OMM, (maybe it has to do with the fact the Disk appears on the desktop set
in my prefs ?) nothing happens with the usual code -


tell application "Finder"
   eject "NIKON D2X"
end tell

Not even an error.

When recording the action (which works when you do it by hand, obvously) and
then re-running the result, nothing either.


Any ideas ?

Cordialement,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

www.studiocasagrande.com

P Please consider the environment before printing this email.

Jay,

Use this script or a variation that suits your needs

<script>
tell application "Finder"
	set l to every disk whose ejectable is true
	repeat with j in l
		eject (contents of j)
	end repeat
end tell
</end>

It works with an USB  flash drive.


Deivy _______________________________________________ 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: 
 >Eject in Leopard (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: Eject in Leopard (Jay Louvion)
  • Next by Date: Re: Eject in Leopard
  • Previous by thread: Re: Eject in Leopard
  • Next by thread: Re: Eject in Leopard
  • Index(es):
    • Date
    • Thread