MacNN Forums (http://forums.macnn.com/)
-   Classic Macs and Mac OS (http://forums.macnn.com/classic-macs-and-mac-os/)
-   -   Applescript/ Disc Image (http://forums.macnn.com/64/classic-macs-and-mac-os/45890/applescript-disc-image/)

 
wclarkson May 18, 2001 06:00 PM
Applescript/ Disc Image
I downloaded a disc image from an ftp server. (My dad's) Now I can't open it with disc copy or through the finder. I want to tell the finder that this is a disc image and to mount it.

I know that AppleScript can change the file type but I don't know applescript and It appears to hard to learn. Could you smart mac users help me out. I really want this program to install. Thanks in Advance
 
Cipher13 May 18, 2001 10:28 PM
Go to www.aladdinsys.com and download the demo of Shrinkwrap. It will mount the image http://forums.macnn.com/cgi-bin/smile.gif


------------------
http://homepage.mac.com/cipher13/.Pi...cipherecho.gif
AIM: Cipher1387
ICQ: 48111606
mail: cipher13@mac.com
 
AppleScript May 19, 2001 01:41 AM
Select the disk image in the Finder and then run the following script:

tell app "Finder"
set the file type of selection to "rohd"
set the creator type of selection to "ddsk"
end tell

(34)

[This message has been edited by AppleScript (edited 05-19-2001).]
 
Moonray May 19, 2001 03:00 AM
The easiest way (and the way without using third party software) is still to use ResEdit. From the File menu choose get File/Folder info, select your file and enter the appropriate Type and Creator in the window which pops up. In this case for disk copy disk images it is rohd and ddsk like AppleScript said.

-
 
Cipher13 May 19, 2001 04:55 AM
The issue is not the wrong/right creator/type codes but not being able to open the image because its in a different format.

Getting Shrinkwrap and dragging the image to it will do what wclarkson wants done.


------------------
http://homepage.mac.com/cipher13/.Pi...cipherecho.gif
AIM: Cipher1387
ICQ: 48111606
mail: cipher13@mac.com
 
wclarkson May 19, 2001 09:56 AM
Once I did the shrinkwrap and the applescript. It saw it was a disk image. I then encountered an error. Type -39 there was an unexpected end-of-file which may mean that the file was corrupted or damaged. How Do I fix this.
 
Moonray May 19, 2001 02:08 PM
Oops... in this case you are missing the resource fork. If the file was not bin-hexed or stuffed (extensions .hqx, .bin, .sit) and it was an old-style .img image (not a new UDIF image ending with .dmg) and you get it via ftp you'll get only the data-fork.

Best is to ask your dad to convert that image into one of these formats which store both, the resource and data fork in one, get it again from the ftp and use Stuffit Expander to unpack it again.

If you need a conversion tool, go to http://www.versiontracker.com and do a search for "binhex". DropBin for example is a free easy to use program to convert files to the binhex format.

Hope that helps

-
 
All times are GMT -4. The time now is 10:29 PM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.


Content Relevant URLs by vBSEO 3.3.2