Applescript saved as read-only...

Discussion in 'Mac Programming' started by LineMastaJorbob, May 14, 2007.

  1. LineMastaJorbob macrumors newbie

    Joined:
    May 13, 2007
    #1
    Hi! This is my first thread here so please excuse me if this is in the wrong section, but I was just wondering if there was a way to make a script that you saved not run-only... I've been working on this project and then I relized that I saved it a run-only script! I nearly teared my hair out! :mad: Anyways... I was just wondering if there was ANY way at all to get my work back...
     
  2. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #2
    Hmmm, I think that when you save a run-only, only the compiled code is saved, with no source. I'm not sure that there's a way to backtrack, short of a decompiler (and I'm not aware of one). But I'd be happy to be wrong! :eek:
     
  3. LineMastaJorbob thread starter macrumors newbie

    Joined:
    May 13, 2007
    #3
    OK... Thanx... I REALLY do hope your wrong (no offense...)
     
  4. lancestraz macrumors 6502a

    lancestraz

    Joined:
    Nov 27, 2005
    Location:
    RI
    #4
    This happened to me once. I googled around but never found a solution.
    I ended up having to rewriting the whole thing.
     
  5. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #5
    From now on save original scripts as text file and create a compiled *copy* so you don't lose the source (and you can easily use a Source Code Management (SCM) setup on plain text files).
     
  6. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #6
    According to people at Apple its impossible.

    Some information can be pulled out but not edited. Subroutines can be extracted and used.
     
  7. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #7
    Once it's a read-only, you're screwed unless you can find an applescript decompiler. Even then, you're not going to recover a 100% original.
     

Share This Page