Mounting .sd2f Files From Unix Command Line
#1
Posted 07 April 2006 - 11:27 PM
I am hoping to use my machine as a music server based around Toast .Sd2f images of my CD's. I want to preserve the timing between tracks and the integrety of the albums without any loss. I do not want to important tracks into iTunes. Rather, I want to mount all my .Sd2f images when my music server boots. Is there a limit to the number of .Sd2f files that OSX/Darwin will allow to be mounted?
Thanks,
Joe
#2
Posted 08 April 2006 - 06:52 AM
I'm pointing this out in hope it will help your investigation into a solution that works for you.
#3
Posted 02 May 2006 - 12:46 PM
Thanks,
-Joe
#4
Posted 02 May 2006 - 02:57 PM
jizen, on May 2 2006, 01:46 PM, said:
Thanks,
-Joe
Have you investigated using the Automator (part of Tiger)?
#5
Posted 02 May 2006 - 06:00 PM
Thanks for the suggestion. I've never used Automator before, but perhaps it can fit the bill. I'm finding the documentation a bit confusing. Would I need to compile my own action for control-clicking on an object and then using the Toast "Mount It" command? How would I feed all .Sd2f files in a particularly folder to this action. Would I use a unix shell script that did an "ls -1 " in my folder of choice?
Thanks, -Joe
#6
Posted 02 May 2006 - 09:48 PM
#7
Posted 02 May 2006 - 10:11 PM
Try asking for help in the Apple Discussions. I've found people on there are good about questions.
#8
Posted 02 May 2006 - 11:04 PM
on run {input, parameters}
repeat with i in input
set myPath to i
tell application "Finder"
open myPath
end tell
tell application "Toast Titanium"
mount image {myPath}
end tell
end repeat
return input
end run
* I should say, mount them using Toast ... since toast will only display one image at a time in the Copy window. However, all of the images appear mounted on the Desktop.
Edited by debit72, 03 May 2006 - 07:05 AM.
#9
Posted 14 May 2006 - 05:37 PM
Thanks for your helpful post. I think you may have solved my poblem, however I am stumbling because of my own experience with Applescripting. I have copied your code verbatim into a new script using Script Editor, compiled it, and saved it to a file call ToastMount.scpt that I see in my applescript pulldown menu on the top bar.
I am worried about the verbatim copy. Was I supposed to substitute something for the input, parameters or myPath fields? If so, if you show me a specific example that is working on your files, i'll be able to emulate the syntax.
When I pull down the script menu and execute, nothing happens. I have both .toast and .S2df filesin a folder. I'm not sure I understand how Toast is supposed to find this folder with my stored files.
How does Applescript differentiate between Toast Titanium 7 and previous versions which I still have in my Applications folder?
Many thanks,
Joe
debit72, on May 2 2006, 11:04 PM, said:
on run {input, parameters}
repeat with i in input
set myPath to i
tell application "Finder"
open myPath
end tell
tell application "Toast Titanium"
mount image {myPath}
end tell
end repeat
return input
end run
* I should say, mount them using Toast ... since toast will only display one image at a time in the Copy window. However, all of the images appear mounted on the Desktop.
#10
Posted 14 May 2006 - 06:13 PM
jizen, on May 14 2006, 06:37 PM, said:
To test this part, add "View Results" as the second action in the workflow. Then run this a couple of times to verify that you're getting a list of files that looks something like this:
{alias "Ginkou:Disk Images:Lowbrow In Concert.img", alias "Ginkou:Disk Images:Magical Mystery Tour.toast"}
This is what I see in the View Results pane after I selected two images.
Once you're sure that you are getting output in the correct format, add another action "Run Applescript." Then copy and paste the applescript verbatim into the window.
Once you have that you should be good to go.
#11
Posted 02 June 2006 - 07:00 AM
Thanks for the explicit instructions. I was able to follow them successfully, however I am finding that Toast fails to mount all the .Sd2f files it locates. It appears that a process is created for each mounted file:
% ps -aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
<snip>
joe 1241 0.0 -0.0 31516 896 ?? Ss 5:29AM 0:00.01 /Applications/Toast 7 Titanium/Toast Titanium.app/Contents/MacOS/ToastImageMounter /Volumes/m2_2/A51-100/CD_
joe 1255 0.0 -0.0 31516 324 ?? Ss 5:30AM 0:00.01 /Applications/Toast 7 Titanium/Toast Titanium.app/Contents/MacOS/ToastImageMounter /Volumes/m2_2/A51-100/CD_
joe 1268 0.0 -0.0 31516 328 ?? Ss 5:31AM 0:00.01 /Applications/Toast 7 Titanium/Toast Titanium.app/Contents/MacOS/ToastImageMounter /Volumes/m2_2/A51-100/CD_
joe 1283 0.0 -0.0 31516 328 ?? Ss 5:32AM 0:00.01 /Applications/Toast 7 Titanium/Toast Titanium.app/Contents/MacOS/ToastImageMounter /Volumes/m2_2/A51-100/LP_
joe 1304 0.0 -0.0 31516 332 ?? Ss 7:14AM 0:00.01 /Applications/Toast 7 Titanium/Toast Titanium.app/Contents/MacOS/ToastImageMounter /Volumes/m3/rationalized/
(the names of my .Sd2f files have been clipped by the right side of the window)
All my .S2df files are being located in the first step. I would like to mount my entire collection of images of my CDs, i.e. hundreds of images. Would you or anyone else have a clue as to what is breaking? Is there a system-wide limit to the number of processes that can exist? Can that be changed by a Darwin/Unix command? It is concievable that I'd run out of memory, but that shouldn't be a factor with the number of mount processes I'm seeing at this point. Could there be a limit to the number of mounts built into Toast7 itself?
Thanks,
-Joe
#12
Posted 14 June 2006 - 12:39 PM
jizen, on Jun 2 2006, 08:00 AM, said:
Sorry, this is out of my league ...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users






