I made a very simple AppleScript app that:
1. takes clipboard string
2. calculates the percentage of certain characters in the string (e.g. # of A's and B's in the string) and store this number as a variable
3. use that variable in another formula and get a numerical result
4. display that result in a dialog box (along with a button to "recalculate" the formula using a newly copied string)
What's annoying is that due to the nature of AppleScript, after clicking "recalculate" a new dialog box reappears at the center of the screen instead of remembering the window location.
So, I want to see if I can convert this into a more native Xcode cocoa project. The thing is, I've never made anything in Obj-C before (meaning I can't write anything, but can read/try to figure out/modify Obj-C code if it is presented to me). I've already layout text field, buttons, and labels Xib file, and have tried to set them up using modified Obj-C code found online (as in rewriting my app in Obj-C), but this is proving to be extremely frustrating with my lack of knowledge.
Does anyone have any tips or would be willing to guide me? I know there is an Applescript based Cocoa application template in Xcode. Is that what I need? Thanks.
1. takes clipboard string
2. calculates the percentage of certain characters in the string (e.g. # of A's and B's in the string) and store this number as a variable
3. use that variable in another formula and get a numerical result
4. display that result in a dialog box (along with a button to "recalculate" the formula using a newly copied string)
What's annoying is that due to the nature of AppleScript, after clicking "recalculate" a new dialog box reappears at the center of the screen instead of remembering the window location.
So, I want to see if I can convert this into a more native Xcode cocoa project. The thing is, I've never made anything in Obj-C before (meaning I can't write anything, but can read/try to figure out/modify Obj-C code if it is presented to me). I've already layout text field, buttons, and labels Xib file, and have tried to set them up using modified Obj-C code found online (as in rewriting my app in Obj-C), but this is proving to be extremely frustrating with my lack of knowledge.
Does anyone have any tips or would be willing to guide me? I know there is an Applescript based Cocoa application template in Xcode. Is that what I need? Thanks.