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: ecomatt on May 21, '13 04:33:06AM
Wow this thread is amazing iv been baffled by this issue for a while - as my old cd's work on 10.6 but not on mountain lion.
I guess mountain lion dropped support for joliet leve3?
can anyone help me update the script to work on 10.8, i replaced disktool with diskutil but it still gets stuck at this line? set diskIdentifier to text item 2 of unmountedVolLine
any help would be greatly appreciated.
I have tested it in terminal and it works doing the following
mkdir /Volumes/tempCD
sudo /System/Library/Filesystems/cd9660.fs/Contents/Resources/cd9660.util -M disk1s1 /Volumes/tempCD
sudo /System/Library/Filesystems/cd9660.fs/Contents/Resources/cd9660.util -u disk1s1 /Volumes/tempCD

i didn't know the diskutil command for disktool -r which i guess allows you to eject the mounted partition in the finder?
so had to use the -u command to unmount it.
also i like the idea of the script to automatically detect the correct unmounted volume. would save a lot of time on the 30+ disks i need to convert / re burn.

any help would be greatly appreciated.

try
	tell application "Finder" to set finderDisks to name of disks
	set currentDisks to do shell script "diskutil list"
	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 "sudo /System/Library/Filesystems/cd9660.fs/Contents/Resources/cd9660.util -M " & diskIdentifier & " /Volumes/temppccd" with administrator privileges
			
			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
 


[ Reply to This | # ]