Fwd: AppleScriptObjC & Cocoa
Fwd: AppleScriptObjC & Cocoa
- Subject: Fwd: AppleScriptObjC & Cocoa
- From: Kellen Ruyle via AppleScript-Users <email@hidden>
- Date: Wed, 24 Jun 2020 16:53:28 -0500
Hey Chris,
Yeah, I have been getting more into app development, and I agree, Swift
Playgrounds is great; I love how I can mess around with code on my iPad and
move over to my Mac.
Thanks for the links to the tutorials!
I appreciate it!
Hey Shane!
> Sure -- it opens up access to a world of stuff, with access to Cocoa and
> third-party frameworks. And it gives you a faster and more reliable
> alternative to apps like the Finder in many cases. All that's just as useful
> in applets and scripts run from places like FastScripts.
Well I’m all about opening up access to a world of stuff. Again fairly new, I
keep on hearing about these apps like FastScripts, but I do like Finder and how
I can script it. But I am down to learn AppleScriptObj and I can figure out the
Xcode part, and just learn AppleScriptObj part. To purchase just go to this
link still: http://www.macosxautomation.com/applescript/apps/?
Thanks for all your help Shane. I appreciate it.
Kell
-
Sent from my iPad
> On Jun 24, 2020, at 2:00 PM, email@hidden wrote:
>
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. Re: AppleScriptObjC & Cocoa (Chris Swain)
> 2. Re: AppleScriptObjC & Cocoa (Shane Stanley)
> 3. Re: AppleScriptObjC & Cocoa (Jean-Christophe Helary)
> 4. Re: AppleScriptObjC & Cocoa (Shane Stanley)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 23 Jun 2020 20:28:27 +0100
> From: Chris Swain <email@hidden>
> To: email@hidden
> Subject: Re: AppleScriptObjC & Cocoa
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> I started out using AppleScript Studio when it first came out to create a GUI
> for an open source command line tools called OpenBabel, this has now been
> through AppleScriptObjC and I?ve just rewritten in using Swift ObJC.
>
> I started off with a very simple version I called ?molSeeker? and I?ve
> written it up here
>
> https://www.macinchem.org/reviews/molseeker/molSeeker.php
> <https://www.macinchem.org/reviews/molseeker/molSeeker.php>
>
> Then embarked on the iBabel rewrite described here.
>
> https://www.macinchem.org/ibabel/version4/iBabel4_0.php
> <https://www.macinchem.org/ibabel/version4/iBabel4_0.php>
>
> There is a steep learning curve but lots of very good YouTube tutorials,
> swift playgrounds are also a great way to try things out. I still use
> AppleScript to control some applications, but if something needs a GUI I?d
> now look at Swift.
>
> Cheers
>
> Chris
>
> Dr Chris Swain BA MA (Cantab) PhD CChem FRSC
> Macs in Chemistry
> email@hidden
> https://www.macinchem.org
>
>
>> Hello!
>> being fairly new to AppleScripting, some of the books I?ve been going
>> through discuss AppleScript Studio and being able to create an AppleScript
>> application in Xcode. Of course, AppleScript Studio is not a thing. But
>> seems like pretty cool concept making your scripts with a user interface. Is
>> there a way to do this currently? I found that it has largely been replaced
>> by AppleScriptObjC and the Cocoa framework. So can you create AppleScript
>> apps with GUI? And is it beneficial to learn the Cocoa framework,
>> Objective-C, and thus AppleScriptObjC if I ever want to write more advanced
>> scripts, especially with GUI?s? If so, are there any resources out there?
>> Sorry for the lengthy email!
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://lists.apple.com/mailman/private/applescript-users/attachments/20200623/dd121582/attachment.htm>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 24 Jun 2020 09:04:14 +1000
> From: Shane Stanley <email@hidden>
> To: AS users <email@hidden>
> Cc: Kellen Ruyle <email@hidden>
> Subject: Re: AppleScriptObjC & Cocoa
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=utf-8
>
>> On 24 Jun 2020, at 1:45 am, Kellen Ruyle via AppleScript-Users
>> <email@hidden> wrote:
>>
>> I was thinking I may have to go the Xcode route. I only use it really to
>> write in Swift and my knowledge in Objective-C is not very extensive. But
>> may be worth my time to learn the syntax.
>
> If you know your way around Xcode and have some knowledge of Objective-C,
> it's going to be pretty simple. My comments were more aimed at people for
> whom neither holds.
>
>> I?m not sure how complex I was really wanting to get but maybe would be
>> worth it, and like you said, just make apps that have an initial interface.
>
> There is another possibility: my Dialog Toolkit Plus script library:
> <https://latenightsw.com/support/freeware/>. I've seen some reasonably
> complex dialogs produced with it, although it is modal.
>
>> Yeah, noticed AppleScriptObjC Explored and it was older but has
>> AppleScriptObjC changed that drastically?
>
> No, it's changed very little -- it's Xcode that keeps changing. Given that it
> contains a lot of screenshots, updating is a laborious task.
>
>> Also, is there a benefit to AppleScriptObjC other than making apps?
>
> Sure -- it opens up access to a world of stuff, with access to Cocoa and
> third-party frameworks. And it gives you a faster and more reliable
> alternative to apps like the Finder in many cases. All that's just as useful
> in applets and scripts run from places like FastScripts.
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 24 Jun 2020 08:22:44 +0900
> From: Jean-Christophe Helary
> <email@hidden>
> To: Shane Stanley via AppleScript-Users
> <email@hidden>
> Subject: Re: AppleScriptObjC & Cocoa
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
>>> Yeah, noticed AppleScriptObjC Explored and it was older but has
>>> AppleScriptObjC changed that drastically?
>>
>> No, it's changed very little -- it's Xcode that keeps changing. Given that
>> it contains a lot of screenshots, updating is a laborious task.
>
> Shane,
>
> You mentionned earlier that you did not sell the book anymore.
>
> What would you think about making is a "open source" document posted on a
> public repository where people could contribute updates ?
>
> I'd love to help you with that if you were OK with the idea.
>
>
> --
> Jean-Christophe Helary @brandelune
> http://mac4translators.blogspot.com
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 24 Jun 2020 09:44:21 +1000
> From: Shane Stanley <email@hidden>
> To: AS users <email@hidden>
> Subject: Re: AppleScriptObjC & Cocoa
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>> On 24 Jun 2020, at 9:22 am, Jean-Christophe Helary via AppleScript-Users
>> <email@hidden> wrote:
>>
>> What would you think about making is a "open source" document posted on a
>> public repository where people could contribute updates ?
>
> I considered just making it freely available, but honestly, I could never
> bring myself to make the leap. Apart from anything else, the last update
> still owes me a lot in terms of the time it took, and I still sell the odd
> copy.
>
> I really don't think it would make a good open source project. I could see it
> perhaps getting a bit of initial enthusiasm, and then ending up a mish-mash.
> I certainly wouldn't want to manage such a project -- I could see it morph
> into me largely updating it myself, to keep control. (That's just me.)
>
> I guess I'm just not convinced there's a base of anywhere near enough
> enthusiastic people to make a go of it. And to be blunt, I don't think the
> AppleScript community, with some important exceptions, has a very good
> reputation for pitching in. (I suspect the reasons are complex -- I'm not
> complaining, just making an observation.)
>
> The other concern is that after I wrote it I saw people get very enthusiastic
> about the process, push it to the limit, and build projects that were simply
> too ambitious, and hence unreliable. Not all, by any means, but enough to
> give me cause. It's left me less enthusiastic about the whole approach
> because of the learning curve involved -- I felt uncomfortable telling people
> to learn all this new stuff but be careful not to push it.
>
> The exception is for people already familiar with Xcode-based projects. For
> them, the effort is much lower, and they can generally work around the issues.
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
>
> ------------------------------
>
> End of AppleScript-Users Digest, Vol 17, Issue 85
> *************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden