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 > Software - Troubleshooting and Discussion > Applications > OMCEdit Help

OMCEdit Help
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 31, 2003, 05:52 PM
 
Hi I'm trying to create a command to take the selected folder and create a compressed DiskImage of it using OMCEdit.

I tried this with no luck:

hdiutil create -srcfolder __OBJ_PATH__ __OBJ_NAME__.dmg

Any ideas?

an encrypted version too?
     
Fresh-Faced Recruit
Join Date: Jun 2002
Location: Paris, FR
Status: Offline
Reply With Quote
Nov 1, 2003, 12:48 PM
 
hello,

I use the perl script buildDmg
http://www.objectpark.org/buildDMG.html

and the command for OMC

/.../path_to_buildDMG -buildDir __OBJ_COMMON_PARENT_PATH__ -compressionLevel 8 -dmgName __OBJ_NAME_NO_EXTENSION__.dmg __OBJ_PATH__


Mathias
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Nov 1, 2003, 02:37 PM
 
Hey, thanks for replying to my plea for help Mathias. I usually get no replies to my OMC questions.

It turns out that my original command was working, but it seems to place the resulting file at the root level.

hdiutil create -srcfolder __OBJ_PATH__ __OBJ_NAME_NO_EXTENSION__.dmg

Any idea on how to get it to place the file in the same path as the original?

I also think I'm missing a command to specify the level of compression ... any idea how to do that?
     
Fresh-Faced Recruit
Join Date: Jun 2002
Location: Paris, FR
Status: Offline
Reply With Quote
Nov 2, 2003, 10:36 AM
 
To have it in the same path, I'd try to add before your command
cd __OBJ_COMMON_PARENT_PATH__;


I'm not sure that you can create the disk image and compress in the same command.

to compress I have this one :
hdiutil convert __OBJ_PATH__ -format UDZO -imagekey zlib-level=9 -o __OBJ_PATH_NO_EXTENSION__-compr


with buildDmg script, you could make all with 1 command, instead of 3 commands.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Nov 2, 2003, 07:11 PM
 
Thanks Mathias. Are you up for another OMC question?

I emailed the author of OMCEdit for help on this and he thought it might be my app that's the problem...

Question:

I was also wondering how to get a command to act upon multiple items in a selection.

Example:

open -a "/Applications/Adobe Photoshop 7/Adobe Photoshop 7.0" __OBJ_PATH__

I have this set to open certain files in Photoshop, but it will only act upon the first selected file. How do I get it to open several
selected files in Photoshop?
     
Fresh-Faced Recruit
Join Date: Jun 2002
Location: Paris, FR
Status: Offline
Reply With Quote
Nov 3, 2003, 12:30 PM
 
maybe try to change something in the tab 'Objects', field 'Process Multiple Objects'.
Not sure, I have never used it to open several files :-)
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:08 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2