image
image

|


Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old December 17th, 2007, 10:55 AM
Registered User
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
sloan_mini is on a distinguished road
How can I edit a binary file

I am attempting to open a file via the command line with vi. The file is apparently a binary file. I cant edit it is there another application that I should open this file with, possibly in the GUI?
Reply With Quote
  #2  
Old December 17th, 2007, 12:14 PM
Giaguara's Avatar
Chmod 760
 
Join Date: Nov 2002
Posts: 7,406
Thanks: 0
Thanked 2 Times in 2 Posts
Giaguara is on a distinguished road
Is this a .bin file? Those can usually be opened in OS X by double-clicking them.
(or more about the file if not - what kind of binary file is it supposed to be?_
__________________
MacBook Pro + Mac mini | Newton 2000 | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
~ Samuel Clemens | Rants | Photos
Reply With Quote
  #3  
Old December 17th, 2007, 12:41 PM
Registered User
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
sloan_mini is on a distinguished road
This is a file that is meant to be edited with a text editor for EMC Retrospect Backup Software. I do not believe that it is a .bin. The icon shows it as a script, which it is. The script is invoked when the backup fails, The system generates an e-mail to the addresses listed in this script.

Thanks
Reply With Quote
  #4  
Old December 17th, 2007, 01:39 PM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,483
Thanks: 0
Thanked 0 Times in 0 Posts
Viro will become famous soon enoughViro will become famous soon enough
What you need is a hex editor. 0xED is a pretty good one that I use.
Reply With Quote
  #5  
Old December 17th, 2007, 01:48 PM
Giaguara's Avatar
Chmod 760
 
Join Date: Nov 2002
Posts: 7,406
Thanks: 0
Thanked 2 Times in 2 Posts
Giaguara is on a distinguished road
Do you have Retrospect installed? I would think it comes with an editor if it has special needs for it. (otherwise I'd probably just use vim or e.g. Smultron)

http://www.versiontracker.com/dyn/moreinfo/macosx/13108
http://downloads.zdnet.co.uk/0,10000...178537s,00.htm
http://downloads.zdnet.co.uk/0,10000...178888s,00.htm
__________________
MacBook Pro + Mac mini | Newton 2000 | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
~ Samuel Clemens | Rants | Photos
Reply With Quote
  #6  
Old December 17th, 2007, 05:52 PM
Registered User
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
sloan_mini is on a distinguished road
Script Editor

Yes I have Retrospect installed. I was able to find and use 'Script Editor' which was already installed.

I edited my script but it is not working. I know nothing about Apple Script. I called EMC, they do not support Apple Scripting. They suggested I call Apple.
I followed the EMC User Guide / Manual exactly.

I suspect the problem is with the invocation of the Mac mail client program. EMC said that Mac Users use about one of four e-mail clients and that could be where my problem is.
Reply With Quote
  #7  
Old December 18th, 2007, 03:22 PM
Giaguara's Avatar
Chmod 760
 
Join Date: Nov 2002
Posts: 7,406
Thanks: 0
Thanked 2 Times in 2 Posts
Giaguara is on a distinguished road
And Apple would not support AppleScripting either except maybe in enterprise configurations.
Could the person who sent it to you send a copy in zipped format? Maybe the file resource forks went missing...
__________________
MacBook Pro + Mac mini | Newton 2000 | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
~ Samuel Clemens | Rants | Photos
Reply With Quote
Reply

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:57 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.