The “NaN” items is an issue with the latest version of Safari. The cart works fine in previous versions and also works in Firefox. I am tracking down a fix today.
You will need to create an account before you can checkout. When you click on the cart button nothing happens (in Safari), add another video to the cart and the drop down will say that you can’t add this item more than once. As soon as the drop down is visible, click the “Show Cart” button. Now you will be taken to the cart.
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.