Re: Recovering Run Only script
Re: Recovering Run Only script
- Subject: Re: Recovering Run Only script
- From: Martin Orpen <email@hidden>
- Date: Sat, 30 Apr 2005 10:20:50 +0100
on 30/4/05 03:25, John McKee at email@hidden wrote:
> Doesn't anyone have a way to decompile a script? I don't care much if I
> have to rename the variables, I'm just not sure how to decode the code.
>
> Actually, if I look at it with BBEdit, the variable names remain. it's
> deparsing the code I can't do.
>
> Sounds like a great project for somebody better than me.
I don't know how the script looks in BBEdit, but you can grab the relevant
information on AppleEvents using the shell's "strings" on the resource fork.
So, a section of the script that I posted yesterday to grab text from a
Preview window would look like this:
963 Preview
980 cwin
990 scra
1000 sttx
1010 valL
And you can get enough of an idea from the AppleEvents of how the script
works - tell Preview to do something involving a window's scroll area,
static text and value.
Obviously, this is a PITA to do on a large script but it can be a useful
aide memoir when you've forgotten how you did something.
I think a decompiler would be viewed with some suspicion by most scripters.
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden