4 Matching Annotations
- Jan 2024
-
actions.work actions.work
-
https://web.archive.org/web/20240106094118/https://actions.work/actions-for-obsidian
An app with a range of acions for Obsidian. See the list of actions, that are likely easily to create in AppleScript or Alfred, for those that are useful to me.
Tags
Annotators
URL
-
- Mar 2021
-
marked2app.com marked2app.com
-
Marked has a basic AppleScript dictionary, and allows you to get the document filename from multiple windows, as well as open files from scripts. This allows some workflow integration if you know a little bit of AppleScript. You can have any application which can trigger an AppleScript open a document in Marked, or have it retrieve a document from Marked for editing or other actions.
-
- Dec 2019
-
www.jessesquires.com www.jessesquires.com
-
Executing AppleScript in a Mac app on macOS Mojave and dealing with AppleEvent sandboxing
This is a useful article for applescript and MacOS applications
-
- May 2017
-
appscript.sourceforge.net appscript.sourceforge.net
-
Calling from Python As of 10.10, AppleScript can use Cocoa frameworks in any Script Editor-based script. This makes it easy for Python and other languages that have Objective-C bridges to call AppleScript directly, without having to package everything as an Xcode app. Stick one or more compiled .scpt files containing AppleScript-ObjC "classes" into a folder, e.g.: use framework "Foundation" use scripting additions script MyASClass property parent : class "NSObject" -- on test() activate display dialog "Hello from AppleScript!" end test end script then just use it from Python like this: from Foundation import NSBundle, NSClassFromString import AppleScriptObjC NSBundle.alloc().initWithPath_(FOLDERPATH).loadAppleScriptObjectiveCScripts() MyASClass = NSClassFromString(u"MyASClass") # get the ASOC class... MyASClass.alloc().init().test() # ...then instantiate and call it
Given that appscript is deprecated, I'm looking at how to call AppleScript directly from Python. This section is a "hello world" demonstration of how.
Tags
Annotators
URL
-