Realy cool Craig, thanks. The only thing that threw me was the fact that the line
set fileText to read alias filePath
has to be inside a tell block. Or rather, the fact that you didnāt explain why.
At the moment it feels like itās just one of these things you have to find out through trial and error, without knowing why. For all I know thereās a perfectly logical reason why it has to be in a tell block but I canāt tell from your video.
Thatās true, but there is a lot that isnāt explained in the video. Part 2 will go into more detail. Part 1 is really just an intro to the process of creating an app with AppleScriptObjC. I didnāt want to let too much detail get in the way of the overall process.
The error that is in the console, if you do not wrap that line, is:
Shane may already have an explanation for why this is targeting the current application. Until now, I havenāt put much thought into it. There are a lot of idiosyncrasies with AppleScriptObjC and when I find a workaround, I normally just move on to finishing the project at hand. I will look into this though and see what is causing it and provide an explanation in part 2.
Still no progress. Thereās nowhere to download it, and the process of registering doesnāt seem to have anything to do with a username and password required for login.
Iām guessing itās either to do with the new security settings for scripting additions, or some kind of terminology conflict. Iām just glad thereās a simple workaroundā¦
A user name and password are generated automatically for you upon registration. You will find them in the confirmation email. Once logged in, you can add the movie to your cart and checkout.
Thanks for that i appreciate the gesture, i wasnāt been entirely serious youāve done a great job! and i donāt mind paying for it really, its not that much.
Keep up the good work.
Looking forward to the third instalment.
Thanks, good video, the me parameter was news to me, no more awkwardness I do hate classes for types, what do I write for NSMenu (other post)ā¦ confusing. Looking forward to next