• 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 image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eject image


  • Subject: Re: Eject image
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 01 Mar 2013 16:18:04 -0600

And, this script works perfectly …

on run
set imageInfo to (do shell script "hdiutil info -plist ")
tell application "System Events" to set InfoRecord to value of (make property list item with properties {text:imageInfo})
--
set mountPointList to {}
set imagesList to images of InfoRecord
repeat with imageItem in imagesList
set entitiesList to |system-entities| of imageItem
repeat with entityItem in entitiesList
try
|mount-point| of entityItem
set mountPoint to (POSIX file the result) as alias
set mountPointList to mountPointList & {mountPoint}
exit repeat
end try
end repeat
end repeat
if (count items of mountPointList) > 0 then
tell application "Finder" to eject mountPointList
end if
--
beep
delay 1
end run


 _______________________________________________
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

  • Prev by Date: Re: Scripting a pause for user input in PS CS6
  • Next by Date: Re: Scripting a pause for user input in PS CS6
  • Previous by thread: Re: Scripting a pause for user input in PS CS6
  • Next by thread: Play sounds via script
  • Index(es):
    • Date
    • Thread