• 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: putting a partition away in OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: putting a partition away in OSX


  • Subject: Re: putting a partition away in OSX
  • From: Matthew Smith <email@hidden>
  • Date: Wed, 07 Aug 2002 15:14:12 +1000

on 07/08/2002 14:51, email@hidden at email@hidden wrote:

> I have been using a simple script in OS 9 in the Startup Items folder
> which put away an OSX partition. It went as follows:
>
> tell application "Finder"
> activate
> if disk "disk_name" exists then (select disk "disk_name") put away
> asking (false)
> end tell
>
> I would like to use this type of script in OSX to put away the OS 9
> partition but cannot seem to locate the correct syntax for OSX. Is this
> possible? I am still very green with applescript so please go easy on me.

Try:

tell application "Finder"
if disk "disk_name" exists then eject disk "disk_name"
end tell

--
Matthew Smith
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: putting a partition away in OSX
      • From: Paul Berkowitz <email@hidden>
References: 
 >putting a partition away in OSX (From: email@hidden)

  • Prev by Date: Re: script to rename files - rather long, sorry
  • Next by Date: Re: putting a partition away in OSX
  • Previous by thread: putting a partition away in OSX
  • Next by thread: Re: putting a partition away in OSX
  • Index(es):
    • Date
    • Thread