Sunday, December 17, 2017

#1 2016-06-17 05:02:12 pm

stegor
Member
Registered: 2006-03-07
Posts: 45

My Applescript file changed into something else?

I was working on an ASOC project in X-Code and the drive it was saved on crashed so of course everything disappeared. When I restarted the drive and opened the file the AppDelegate.applescript file turned into something I don't recognize. Here is a small snippet of it starting at the very top:

geScaling="proportionallyDown" inset="2" id="1368">
                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                            <font key="font" metaFont="smallSystem"/>
                        </buttonCell>
                        <connections>
                            <action selector="orderFront:" target="1358" id="1652"/>
                        </connections>
                    </button>
                    <button verticalHuggingPriority="750" id="1370">
                        <rect key="frame" x="725" y="271" width="90" height="21"/>
                        <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
                        <buttonCell key="cell" type="smallSquare" title="Crawler" bezelStyle="smallSquare" alignment="center" controlSize="small" refusesFirstResponder="YES" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="1371">
                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                            <font key="font" metaFont="smallSystem"/>
                        </buttonCell>
                        <connections>
                            <action selector="orderFront:" target="1392" id="1418"/>
                        </connections>
                    </button>
                    <button verticalHuggingPriority="750" id="1373">
                        <rect key="frame" x="820" y="293" width="90" height="21"/>
                        <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
                        <buttonCell key="cell" type="smallSquare" title="Project Gallery" bezelStyle="smallSquare" alignment="center" controlSize="small" refusesFirstResponder="YES" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="1374">
                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                            <font key="font" metaFont="smallSystem"/>
                        </buttonCell>
                        <connections>
                            <action selector="orderFront:" target="i2O-ip-9Em" id="kaR-Fu-4x2"/>
                        </connections>
                    </button>

It actually still builds and runs, but of course I can't work on it.
Anyone know what happened, and if it's possible to recover it? Thank God I have a backup, but I lost a day of work.

Thanks,
Greg

Offline

 

#2 2016-06-18 04:51:19 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11482
Website

Re: My Applescript file changed into something else?

Hi,

the snippet is actually a part of an Interface Builder .xib file, the textual representation of the Interface layout.


regards

Stefan

Offline

 

#3 2016-06-18 09:34:41 am

stegor
Member
Registered: 2006-03-07
Posts: 45

Re: My Applescript file changed into something else?

I figured it was something like that. It's like an xml file describing the interface. So somehow my .xib file filled my script file with its guts. But the app still builds from it, so my script file's guts must be somewhere...? I've examined every file in the project. Weird. Should I just accept that it's gone or is this some known behavior with a solution?

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)