Environment: Mac
Application: Apple Mail
I receive several mails/day that contains an url to a PDF that i would like to save automatically using a Rule, to a specific folder.
I did manage to create a Service in Automator that actually saves the pdf from any choosen mail, but cannot automate this using a Rule. :-(
I've tried several Applescripts but at no success...
So, after 4 days of Google i give up, can anyone help me?
Sincerely/
Erik
If you already have a Service that will do the work, you can write an AppleScript that will call the Service using the automator command line utility. See this previous question for details. Then you can point the Rule at the AppleScript and away you go.
Related
It has been a while since I coded a little bit and I only use Mac for a couple of weeks.
Here is what I would like to do:
I have a spreadsheet with email addresses, subjects and text bodies for an email.
I can summarize this data in a way that I have a cell that is filled with
to=foo#nowhere.net,subject='test subject',body='test body'
Now, I would like to copy this line to clipboard and create a keyboard shortcut to run this code
cd /Applications/Thunderbird.app/Contents/MacOS/
./thunderbird -compose "CLIPBOARD CONTENT"
I would like to use this to automatically create an email based on the (dynamic) content of the spreadsheet.
Is this possible or does anyone have a better idea how to create such emails? I have tried to work with mailto-links but it does not work because there is some more complexity to the spreadsheet which makes it impossible.
Thank you!
This workflow works from within Automator (even though I feel it's kind of buggy). Unfortunately, when I call it using a shortcut from within other apps it throws an error:
Found the cause of my error 212:
The of front workflow statement does not work from outside Automator because then, it is not the front workflow anymore. I had to do a workaround that does not use this statement...
I don't believe there's any way to contact a human being at Google to help with this, unfortunately.
I have an add-on that I developed years ago: https://chrome.google.com/webstore/detail/doc-variables/ggigadkkljhdchdhpliohdcokbnpcnjn?hl=en
In the last few weeks (last publish 5/29/17) I can no longer publish from the script editor. It says, "Only the owner of a script can publish the script as an add-on.".
I know I own the app/script:dashboard screenshot
One item to mention is that our organization (the account associated with it) recently changed our domain. Is it possible this disconnected my ownership some how? Anyone have any ideas on what I can do?
The screenshot shows that you own the webstore item but not that you own the script itself.
If it's a standalone script, then make sure you also own the script document in Google Drive. Perhaps, the ownership has been changed or you've opened Script Editor with a different account. If the ownership has been changed and you cannot change it back, you can make a copy of the script that you'll own.
I am having issues with my "Automatically Add to iTunes". As a result, I am trying to make an Applescript that will be stored on my USB, and when I click on a certain Music File, I want it to launch an applescript.
I did some research, and everyone keeps telling me about Launchd. How would I use this command to run an applescript saved as .app? I want to store this Music File and the Applescript on my USB, because I have multiple computers. Can I get it to run as soon as I open a specified music file? Thank you.
I eventually figured out a way to do what I wanted, which was to somehow play a music file from inside the application. All I did was use the idea of resources because it can reference itself without having to rely on a file stored somewhere else on the system. Here's a link to essentially what I did: https://apple.stackexchange.com/questions/157724/applescript-path-to-files-in-applications-resources
in short, I contained the music file within the app itself and played it when it was needed.
I want to programmatically open Excel files on a user's computer, read what is in the first cell, then save this to a mysql db on my webapp with the following info:
cell content (text)
file_updated_date (date)
Is this possible?
Will the user have to install a desktop application for me to open files on their computer, or can I get permission to run a script and return information from a website?
What language or technologies are available to open Excel files, read content, and send to an http endpoint? Is this a Ruby program?
RailsCast is going to be your friend. Learn it, like it, love it. That link should take your straight to his CSV/Excel importing video that can walk you through basically exactly what you're trying to do. As far as reading from the file goes anyways. As for writing back to the webserver, if the webserver doesn't move you can embed the address into your code and work from that. HTTPClient should be able to help you with that part.
I want to copy the current selection, even if it's in another application like Mail, when the user hits a specified hotkey like Cultured Code does it in Things when you create a new task. I got the hotkey working and I know how to place and get stuff on and from the pasteboard. But I have no idea how to get a current selection.
Anyone? Thanks!
You do this with a Service Provider. See the Service Implementation Guide. For what you're talking about, it should work very well. You don't need to do your own hotkey code; it'll do that for you. You don't even have to be running; it'll launch you.
To #Josh Caswell's point about OmniFocus, they're doing stuff fancier than just "the current selected text." They also copy the message itself into the inbox item as an attachment. That's what the plugin is assisting with.
This is a job for AppleScript, which is why applications that do clipping like this only support certain other applications to clip from -- those other applications have to support AS.
You'll have to take a look at the Mail AS dictionary and figure out how to get the selected text, and I believe that unfortunately you'll have to do the same with each application from which you want to clip.
Another possibility: it sounds like OmniFocus uses a Mail plugin for this functionality -- from http://forums.omnigroup.com/showthread.php?t=13906:
Starting in 10.6, Mail.app will refuse to use plugins... install the Clip-o-tron from that updated release... "OmniMailMessageEnabler...".