Re: Which drive is a CD in?
Re: Which drive is a CD in?
- Subject: Re: Which drive is a CD in?
- From: "J. Stewart" <email@hidden>
- Date: Tue, 22 May 2007 19:49:16 -0400
On 5/20/07 at 4:55 AM, Ruth Bygrave <email@hidden>
spake thusly:
1) At user (non-scripting) level -- is there something really obvious I'm missing which shows where the physical mount point is?
See below
2) I can figure out how to script 'make a new disc image' in
Toast, but I can't figure out at all how to make a copy as a
disc image based on where it's mounted (I have two optical
drives, several external hard drives, and a floating population
of Toast images. Disambiguating 'copy this disc based on where
the physical disc is' would be quite useful).
I know Terminal probably has its unambiguous references to
physical mount points of drives, but I have no clue on how to
get anywhere with GUI-level things like iTunes and Finder and Toast...
Regards, Ruth
_______________________________________________
You don't need Toast to make a new disk image, Applescript can
handle it just fine on it's own with a little help from Unix. I
can probably supply one if needed but there are several already
floating around. Try a Google search.
This script will show you the mount point and device ids of all
mounted disks. The only catch is that (as written) it requires
Tex-Edit Plus which is an outstanding and highly scriptable text
editor. It is share-ware ($15) but will display the results of
this script without your having to buy it.
Here's the URL <http://www.tex-edit.com/>
Watch out for line wrapping, some of the lines in this script
are rather long. You will need to cut/paste it to your script editor.
--> Cut <--
set dt to ASCII character (9)
set res to "Name" & dt & "File System" & dt & "Device" & dt &
"Mount Point" & return
set scpt to "/usr/sbin/disktool -l | grep -v \"volName = ''\""
set vols to paragraphs of (do shell script scpt)
set {oldTids, my text item delimiters} to {my text item
delimiters, {"'"}}
repeat with aline in vols
tell (contents of aline)
set res to res & its text item 8 & dt & its text item 6 & dt &
its text item 2 & dt & its text item 4 & return
end tell
end repeat
set my text item delimiters to oldTids
tell application "Tex-Edit Plus"
activate
set tab makes spaces to false
set tab width to 150
make new document with properties {name:"Disk Info",
contents:res, bounds:{50, 100, 720, 300}}
end tell
--> Cut <--
JBS
--
Always drink upstream from the herd. — Will Rogers
_______________________________________________
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