Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > Applescript/ Disc Image

Applescript/ Disc Image
Thread Tools
wclarkson
Dedicated MacNNer
Join Date: Mar 2001
Location: New Orleans
Status: Offline
Reply With Quote
May 18, 2001, 05:00 PM
 
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
G4 Cube Owner :-)
     
Cipher13
Registered User
Join Date: Apr 2000
Status: Offline
Reply With Quote
May 18, 2001, 09:28 PM
 
Go to www.aladdinsys.com and download the demo of Shrinkwrap. It will mount the image


------------------

AIM: Cipher1387
ICQ: 48111606
mail: [email protected]
     
AppleScript
Forum Regular
Join Date: Feb 2001
Status: Offline
Reply With Quote
May 19, 2001, 12: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
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
May 19, 2001, 02: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
Registered User
Join Date: Apr 2000
Status: Offline
Reply With Quote
May 19, 2001, 03: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.


------------------

AIM: Cipher1387
ICQ: 48111606
mail: [email protected]
     
wclarkson  (op)
Dedicated MacNNer
Join Date: Mar 2001
Location: New Orleans
Status: Offline
Reply With Quote
May 19, 2001, 08: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.
G4 Cube Owner :-)
     
Moonray
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
May 19, 2001, 01: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

-
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:12 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,