It's easy enough to execute some AS in python though: from Foundation import NSAppleScript textOfMyScript ''' (Your AppleScript Here) ''' myScript NSAppleScript.initWithSource(NSAppleScript.alloc(), textOfMyScript) results, err myScript. To see both code and live view (or just live view), slide from the right. While you can produce convoluted python that invokes the same Apple Events as AppleScript, some things are handled more easily in AppleScript.And of course, all the new ObjC name import stuff isn’t working as expecting, so you do have to hunt around. XCPlayground seems to be PlaygroundSupport - took me forever to figure that out because it’s still XCPlayground on the desktop.This development is yet another example of how patience and cordial engagement with developers. I can’t figure out how to get things onto and off of the iPad: tried emailing playgrounds, playground pages, tried going through iTunes, looked in Xcode, even used PhoneView (Ecamm) and iBrowser (my little hack app) to try to track this stuff down. Applescript 1-2-3 on the iBooks store Mac Os Automation.However, ^A/^E don’t respect the onscreen folding, so in squish mode, they’ll jump to the start and end of each \n-delineated line, not the folded version. Some (but not all) Emacs keybindings work, which makes editing much easier. Type2Phone is limited by iOS’s Bluetooth-keyboard limitations. The user could use temporary items path as a location to store that image, so that the code could operate on it. Houdah’s Type2Phone is the best for working with iOS playgrounds. Here is an example of how one might need to reference temporary items path in their AppleScript: Say that one wanted an Automator application to display to the user the dimensions of a web image.Just install a beta to your favorite (newerish) iPad.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |