Last active
November 9, 2024 12:47
-
-
Save stephenhowells/4599997 to your computer and use it in GitHub Desktop.
iA Writer AppleScript to preview text in Marked.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Preview the currently active iA Writer document using Marked. | |
tell application "iA Writer" | |
activate | |
-- Ask iA Writer for it's active document. | |
set the_document to document 1 | |
-- Save the document or prompt if not previously saved. | |
save the_document | |
-- If the file is saved, open it using Marked. | |
tell application "Marked" | |
set the_file to the_document's file | |
open the_file | |
-- Bring Marked forward so it becomes visible. | |
activate | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment