(My not-modified-recently docs on this machine appear to all be the latter type. OmniGraffle-Add-Magnets. OmniGraffle-Clear-Magnets.scpt Clears all magnets from selected shape. OmniGraffle-Magnets.scpt by Laurence Scotford allows any number of magnets to be added on a per side basis, inculding corners or not. It's possible that this approach will fail if you throw a Graffle document that has been saved as a file package at it, but it appears to work correctly in the case of flat file Graffle docs. Set of scripts for use with omni graffle. Script fails when pointed at the script, then starts working if I open the file once via the Finder. Okay, just tested with a different not-edited-in-a-while TextEdit document. One way to get the currently selected text into an AppleScript, without overwriting the clipboard contents, is to simply save the clipboard contents to a new variable before the selected text is copied. Created a new test file, pointed the script at that, then got the results you described and went from there. by frank72 Will you port an equivalent API to a JSContext on iOS (as Omni have done with OmniGraffle and their other products) The osascript interface you. Here is a recent blog post that focuses on this very mission: Michael Tsai - Blog - Processing the Selected Text via Script. The following example shows you how to reposition all objects in your document by a certain horizontal/vertical offset - in this case, 20 pixels up. To execute AppleScript, open the AppleScript editor, create a script in it, and run it. I chalked that up to the Versions feature of OS X - it locks files that haven't been modified recently. Omnigraffle gives quite a bit of access to AppleScript for automating just about anything you can do by hand. In that case, TextEdit returned a "The document “” could not be opened. I wonder if it's related to the files' "last opened" date - the first time I tested with TextEdit, I tried an existing file that had been sitting on my desktop for a while. Oh, interesting - I didn't notice the multiple-tries angle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |