- Code: Select all
dle2obj formenumindxwanttypepsxfseldalis»»Macintosh HDBDˇˇˇˇLoad_Confirmation_#FFFFFFFF.pdfˇˇˇˇˇˇˇˇ
cu DocumentsG/:Users:?????:Documents:Load_Confirmation_20181513_20180213123717.pdf\-Load_Confirmation_20181513_20180213123717.pdfMacintosh HDEUsers/typkrft/Documents/Load_Confirmation_20181513_20180213123717.pdf/ˇˇfromnull
The frustrating thing is that I had this working only a couple weeks ago, but my computer died and I am trying to recreate the script, I can't remember my previous solution. I've replaced potentially sensitive information with ????. Thanks in advance for any assistance.
- Code: Select all
set originalClipBoard to the clipboard
tell application "Spark" to activate
tell application "System Events"
keystroke "n" using {command down}
delay 0.5
keystroke "v" using {command down}
delay 1
keystroke tab
keystroke "Please Sign and Return"
keystroke tab
end tell
delay 0.25
tell application "Finder" to set the clipboard to (POSIX file "/Users/?????/Documents/Work/Setup Paperwork/????.pdf")
tell application "System Events"
keystroke "v" using {command down}
end tell
delay 0.25
tell application "Finder" to set the clipboard to (POSIX file "/Users/?????/Documents/Work/Setup Paperwork/????.pdf")
tell application "System Events"
keystroke "v" using {command down}
end tell
delay 0.25
tell application "Finder" to set the clipboard to (POSIX file theFile)
tell application "System Events"
keystroke "v" using {command down}
end tell
delay 0.25