• 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: Initialize using Apple Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initialize using Apple Script


  • Subject: Re: Initialize using Apple Script
  • From: Pier Kuipers <email@hidden>
  • Date: Thu, 8 Feb 2001 09:04:00 +0000

>Is there a way to specify which hardrive to initialize through apple
>script without using, the X and Y position axis implemented by
>Cursor OSAX extension?

Seems like a *very* dangerous idea to rely on somthing as
inconsistent as the position of items on the desktop to manipulate
them. To select a particular disk, you'd be better off using criteria
such as capacity, whether it's a local volume, startup disk,
removable etc. The finder's dictionary has plenty to offer:

tell application "Finder"
select (every disk whose local volume is false and capacity > 100000)
end tell

BTW, why would you want a script to initialize a hard drive?

Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *

2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754

http://www.visualid.com


References: 
 >Initialize using Apple Script (From: "Braulio Gonzales" <email@hidden>)

  • Prev by Date: Applescript speed within Filemaker
  • Next by Date: Re: 'Hierarchy' of libs?
  • Previous by thread: Initialize using Apple Script
  • Next by thread: emptyTrash command
  • Index(es):
    • Date
    • Thread