greedist Posted July 7, 2021 Share Posted July 7, 2021 (edited) /Users/abs2634/Library/Mobile Documents/iCloud~is~workflow~my~workflows/Documents/CMYK/CMYK.png I want to print a file in that path using AppleScript Edited July 7, 2021 by greedist Link to comment
vitor Posted July 7, 2021 Share Posted July 7, 2021 5 hours ago, greedist said: print the file to the Apple script on the path above I don’t understand what you want to do. Describe instead the steps you want to perform in Alfred and the result you expect, perhaps that will be clearer. Link to comment
greedist Posted July 7, 2021 Author Share Posted July 7, 2021 (edited) Sorry, the translation was wrong.. I want to print a file in that path using AppleScript. Edited July 7, 2021 by greedist Link to comment
vitor Posted July 7, 2021 Share Posted July 7, 2021 tell application "Finder" to print POSIX file "/Users/abs2634/Library/Mobile Documents/iCloud~is~workflow~my~workflows/Documents/CMYK/CMYK.png" Link to comment
greedist Posted July 7, 2021 Author Share Posted July 7, 2021 Thank you so much for your help! Link to comment
greedist Posted July 8, 2021 Author Share Posted July 8, 2021 Excuse me, but I have one more question. Could you tell me a script that runs the script and ends the preview when the preview doesn't turn off? Link to comment
vitor Posted July 8, 2021 Share Posted July 8, 2021 Just now, greedist said: a script that runs the script and ends the preview when the preview doesn't turn off? That translation is wonky again. Link to comment
greedist Posted July 8, 2021 Author Share Posted July 8, 2021 I'm so sorry... When I run the script you told me, the preview app is turned on. Can I make the preview app close when the script is finished? Link to comment
vitor Posted July 8, 2021 Share Posted July 8, 2021 You do something like: tell application "Preview" to quit But that might close it to early. I don’t have a printer to test the behaviour. Link to comment
greedist Posted July 8, 2021 Author Share Posted July 8, 2021 Thank you for your kind teachings🙂 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now