Skip to content

Instantly share code, notes, and snippets.

@zurdors
Forked from stephenhowells/ia-writer_marked.applescript
Last active November 24, 2019 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zurdors/d0b25915a453316d398a4a5c4f53816f to your computer and use it in GitHub Desktop.
Save zurdors/d0b25915a453316d398a4a5c4f53816f to your computer and use it in GitHub Desktop.
Vista previa de documento activo en iA Writer usando Marked.
-- Previsualizar el documento activo en iA Writer usando Marked.
tell application "iA Writer"
activate
-- Verifica si 'iA Writer' tiene un documento activo.
set the_document to document 1
-- Guarde el documento o pedirá que guarde si no lo ha guardado anteriormente.
save the_document
-- Si el archivo está guardado, abrirá el documento usando Marked.
tell application "Marked"
set the_file to the_document's file
open the_file
-- La ventana de 'Marked' estará al frente para que sea visible.
activate
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment