SUMMARY: Making CD invisible
SUMMARY: Making CD invisible
- Subject: SUMMARY: Making CD invisible
- From: Mike Smith <email@hidden>
- Date: Tue, 17 Jul 2007 09:59:43 -0700
- Thread-topic: SUMMARY: Making CD invisible
Thanks to all who helped me with this!
I should have mentioned that some of these computers are OSX 10.3.9 and the
AS mentioned by Matt Deatherage works great on the OSX 10.4.x computers but
NOT the 10.3.9 ones. Gives an error message that says an identifier can't go
after this property and has desktop shows highlighted in the Script Editor.
>> Contrary to oft-mentioned wisdom on this list, "do shell script" is
>> *not* the answer to all problems.
>>
>> tell application "Finder"
>> tell Finder preferences
>> set desktop shows removable media to false
>> end tell
>> end tell
>>
>> Set it back to "true" to make them show up again. This is the same
>> thing as manipulating the second checkbox in Finder > Preferences >
>> General ("Show these items on the Desktop: CDs, DVDs, and iPods"), and
>> takes effect immediately. Set it before you mount the disk image,
>> which
>> is "removable media," and the icon won't show up on the desktop at
>> all.
>>
>> --Matt
I haven't tried Ken Fleisher's suggestion to move the icons off the desktop
(yet).
There are no iPods or USB devices that need to be shown on the limited
access login for students. That is reserved for Admins.
They do show up in the Sidebar but I don't care. The issue is more about
aesthetics than security.The images are read only anyway.
Axel Luttgens' suggestion of the -nobrowse flag works the best. Nothing in
the Sidebar, either.
do shell script "hdiutil mount /Users/Shared/Math-3-5.dmg -noverify
-quiet -nobrowse"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Original Message:
At the elementary schools I have some programs that require a CD be in the
CD tray in order to run. I have made the following script to mount three
images of these three CDs to the desktop.
tell application "Finder"
try
do shell script "hdiutil mount /Users/Shared/Oregon-Trail-5.dmg
-noverify -quiet"
end try
try
do shell script "hdiutil mount /Users/Shared/Math-3-5.dmg -noverify
-quiet"
end try
try
do shell script "hdiutil mount /Users/Shared/Math-K-2.dmg -noverify
-quiet"
end try
end tell
It works great, although I am sure it can be refined, and it has been in use
for 2 years now. One refinement I would like to do is make the mounted
image(s) invisible. And I have to admit my reason is really nothing more
than cosmetic. I think it would look better and be less confusing to the K-4
grade users.
I have looked through man hdiutil and haven't found anything about making it
invisible. Perhaps someone will see this and have the answer (I hope!)...
Thanks for any help.
--
Michael B. Smith
SSD 119 TechOffice
_______________________________________________
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