Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Work with PC-created Joliet Level 3 CDs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Work with PC-created Joliet Level 3 CDs
Authored by: brfransen on Apr 16, '04 09:30:35PM
Great hint! It works perfectly for me on the two Joliet 3 CD I have tried it with.

I wrote a quick Applescript that automates this process somewhat. I am not the greatest scripter so if you see flaws in the script's logic or improvements to be made please let me know so I can learn.

Here's the script:
try
	tell application "Finder" to set finderDisks to name of disks
	set currentDisks to do shell script "disktool -l"
	set AppleScript's text item delimiters to return
	set currentDisks to every text item of currentDisks
	set unmountedVolLine to ""
	repeat with currentLine from 1 to the count of items in currentDisks
		if item currentLine of currentDisks does not contain "volName = ''" then
			repeat with i from 1 to the count of items in finderDisks
				if item currentLine of currentDisks contains "volName = '" & item i of finderDisks & "'" then
					exit repeat
				else
					if i = the (count of items in finderDisks) then
						set unmountedVolLine to item currentLine of currentDisks
						exit repeat
					end if
				end if
			end repeat
		end if
		if unmountedVolLine is not equal to "" then
			set AppleScript's text item delimiters to "'"
			set diskIdentifier to text item 2 of unmountedVolLine
			do shell script "mkdir /Volumes/temppccd; /System/Library/Filesystems/cd9660.fs/cd9660.util -M " & diskIdentifier & " /Volumes/temppccd; disktool -r"
			exit repeat
		end if
	end repeat
	if unmountedVolLine is equal to "" then display dialog "There are no unmounted disks." buttons "OK" default button "OK"
	set AppleScript's text item delimiters to ""
on error error_msg number error_num
	set AppleScript's text item delimiters to ""
	display dialog "Error " & error_num & ": " & error_msg buttons "OK" default button "OK"
end try
Britney

[ Reply to This | # ]