Relative Content

Tag Archive for applescript

Applescript works on one document but breaks on an almost identical document

— Code Set 1 tell application “Pages” activate try set theDoc to the front document tell theDoc set theText to body text as text set updatedText to my replaceScriptureReferences(theText) set body text to updatedText end tell on error errMsg display dialog “Error: ” & errMsg buttons {“OK”} default button “OK” giving up after 5 end […]

Applescript works on one document but breaks on an almost identical document

— Code Set 1 tell application “Pages” activate try set theDoc to the front document tell theDoc set theText to body text as text set updatedText to my replaceScriptureReferences(theText) set body text to updatedText end tell on error errMsg display dialog “Error: ” & errMsg buttons {“OK”} default button “OK” giving up after 5 end […]

Copy or create an image into every folder created by an Apple Script

I’ve written an AppleScript that creates a folder structure of my photography workflow. This script works great. However, since Adobe Lightroom won’t recognize an empty folder, I’m trying to figure out how to copy (or create) a placeholder image into each folder that script creates, but I can’t get figure out how to do it. Here is the folder script: