applescript

MacOS Automator + Applescript solution for exporting docx to pdf

我与影子孤独终老i 提交于 2020-12-29 18:22:03
问题 Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator Service: Used the following script: on run {input, parameters} tell application id "com.microsoft.Word" activate open input set doc to name of active window set theOutputPath to (input & ".pdf") save as active document file name theOutputPath file

MacOS Automator + Applescript solution for exporting docx to pdf

爱⌒轻易说出口 提交于 2020-12-29 18:21:36
问题 Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator Service: Used the following script: on run {input, parameters} tell application id "com.microsoft.Word" activate open input set doc to name of active window set theOutputPath to (input & ".pdf") save as active document file name theOutputPath file

MacOS Automator + Applescript solution for exporting docx to pdf

你说的曾经没有我的故事 提交于 2020-12-29 18:18:21
问题 Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator Service: Used the following script: on run {input, parameters} tell application id "com.microsoft.Word" activate open input set doc to name of active window set theOutputPath to (input & ".pdf") save as active document file name theOutputPath file

AppleScript Application is not allowed to send keystrokes

感情迁移 提交于 2020-12-29 10:55:23
问题 I made an app with AppleScript called FRIDAY. When I tell it to 'open chrome', it opens google chrome, this is working on Script Editor and out side of script editor. I can also tell it to 'open a new tab' and it opens a new tab using keystrokes: -- this boolean is the reason this script keeps runing set condition to false say "Welcome sir" set commands to {"what is todays date", "what time is it", "what is the time", "what day is it", "what month is it", "which month is it", "friday you up",

Using Applescript to open MS Powerpoint 2016 file

落花浮王杯 提交于 2020-12-13 03:27:56
问题 I am trying to automate the conversion of a MS PowerPoint (Version 15.30) 2016 file using AppleScript. I have the following script: on savePowerPointAsPDF(documentPath, PDFPath) tell application "Microsoft PowerPoint" open alias documentPath tell active presentation delay 1 save in PDFPath as save as PDF end tell quit end tell end savePowerPointAsPDF savePowerPointAsPDF("Macintosh HD:Users:xx:Dropbox:zz yy:file.pptx", "Macintosh HD:Users:xx:Dropbox:zz yy:file.pdf") This script works fine