New answers tagged

0

Write an AppleScript to do what you want. Then: Configure it as a Service using Automator, and assign a keyboard shortcut to it via the Keyboard System Prefs. Or Get a copy of FastScripts and assign the keyboard shortcut using that.


0

Do this: Remove the "Speak text" action. Add the "Run AppleScript" action. Clear all the default text in the action. Copy/paste this script in the action: on run {input, parameters} repeat with thisText in input say thisText speaking rate 400 end repeat end run If you want a specific voice, append using "SomeVoiceName" after the say ...


1

As one of the commenters alluded to, "get first message of inbox" probably won't return what you expect. When retrieving messages using AppleScript, Mail sorts your mailbox accounts alphabetically. Within each account's inbox, messages are sorted newest first. What you have selected in Mail doesn't change the order in which they're returned to ...


1

If Automator is closed then open Automator and select Application under Choose a type for your document, then click the Choose button. If it's already open the choose File > New and select Application under Choose a type for your document. Add a Run Shell Script Action to it. Copy and paste the shell code you presently have into the Run Shell Script ...


1

The following steps solved the problem for me: Export the workflow from Automator (e.g. to Desktop). Click on the exported workflow. A dialog appears asking whether you want to open it or install it. Choose Install. Another dialog appears asking whether you want to overwrite the existing service. Choose Overwrite. Now the service appears in the proper ...


0

You can force Terminal to become frontmost by adding the line: activate application "Terminal" into your applescript. if you launch Terminal with: tell application "Terminal" to open location "ssh://user@example.com" then Terminal won't open an extra window.


0

Automatically execute html in an email. I'm not familiar with Smart Mailbox and what language it uses but below is a VBA script for Outlook that searches for the text "Click" which is a href to a URL, extracts the URL and executes it in Internet Explorer as a weblink. The code is very messy with very little documentation but it uses the Split Array ...


1

You can execute shell script directly on OS X, so there's generally no good reason to do that. However, if you really feel like it, you can use do shell script "script" to execute a shell script in AppleScript.


2

Here is an Automator Service that becomes available in Finder when Folders are selected and emulates the context-menus Compress [n] Items command except it creates an individual zip archive file for each selected Folder in the name of the selected Folder. If the Folder Name.zip file already exists then a " 2" (space 2) is appended to the filename, e.g. ...


0

Try: tell application "Terminal" if not (exists window 1) then reopen activate do script "echo hi" in window 1 end tell


0

It's normally a good idea to check for the existence of an external disk before using it. In this case, however, automator won't display an error if the disk is not found, it just won't do anything. I'd say it's safe in this instance.


2

Paste this script into script editor and save it as a service. Map the service to a keyboard shortcut. tell application "Safari" activate tell current tab of window 1 do JavaScript "location.reload();" end tell end tell EDIT tell application "Safari" activate tell window 1 --options set myTab to tab 1 ...


0

So I figured this out after a lot of digging. In looking for the Automator action, I somehow skimmed over the application package in /Applications. Transmit's actions live in /Applications/Transmit.app/Contents/Library/Automator. Once I found them, I just had to clear the Apple quarantine info on that folder with sudo xattr -r -d com.apple.quarantine ...


0

Since I do not have the Dispense Items Incrementally Action what I'm going to present is an alternate way of achieving what I understand your end goal to be, at least in part anyway. The code presented below is not polished or complete in that it simply preforms the insertion of the number of images in the selected folder into the document without regard for ...


0

Here is the issue I ran into with the translation of "Hent ut PDF-tekst" in Google Translate while translating from Norwegian to English, it translated as "Get the PDF text" so when I typed "Get" in the Actions Search Box it didn't show any PDF Actions with the "Get" Actions that did show. Upon further examination I found Extract PTF Text and used it. I ...


1

You could also do this with Mail rules. The gmail method is better in that the forwarding happens when Mail isn't running, but you can set up a rule as follows: The rules section is just in Mail preferences. You might try redirect instead of forward and see which "mom" prefers. I also added a bonus action of marking the message read - you can explore ...


3

There is an easy way to do that right in Gmail. In the settings tab, go to settings and first add a forwarding address under Forwarding and POP/IMAP. Enter the desired forwarding address and confirm it by entering the confirmation code or clicking on the confirmation link. Then go to the Filters and Blocked Addresses tab in settings. On the bottom of the ...



Top 50 recent answers are included