Tag Info

New answers tagged

1

This script in an Automator Dictation command seems to work. Not the fullscreen will not work properly if run in Automator or Script editor. It picks up the previous window 1. But any time I got the Dictation command to work. ( always find a bit of a pain to get them to understand me) It got the right window 100%. This script uses system profiler to get ...


1

I'll take my comment and make it into an answer; assuming I understand what you're looking for at least. Tested this code and it works fine for me. You'll need to adjust the numbers to indicate the relative position of your monitor. Assuming you don't move your screens around, it's a one-time entry. Credit to this answer on SO which also provides a link to ...


5

The space character is used by bash to separate different parameters to a command so you need to protect/escape it if it occurs in filenames (or other parameters): mv /Users/diogosaraiva/Music/Downloads\ -\ Youtube/Novas/* /Users/diogosaraiva/Music/Downloads\ -\ Youtube/Tratadas You can also use quotes to protect the space characters from being ...


0

For a more general solution to the bash environment in automator differing from your own sou could simply load your personal bash profile at the first line of the automator bash script: source ~/.bash_profile This will make the path and any other environment variables you're used to using available from your automator script.


0

on run set cat to value of variable "cat" of front workflow (*I have already defined the variable elsewhere in the workflow*) set num to {} set myString to "" tell application "Contacts" repeat with i in cat set inGroup to group i set phoneProps to value of phones of inGroup's people repeat with i ...


0

Use a Run AppleScript action with the following to get the path: POSIX path of (path to me) When run in the workflow, this provides the path to Automator.app, but when run by launching the saved application, this provides the path to the application.


1

EUREKA! I found it! The way I achieved this marvelous setup, was with a combination of a tiny AppleScript saved as an .app file, and the brilliant, free third-party prefPane app, Do Something When. Instructions: Set up up the first part of the process as linked to in the question, which will give the following settings in AutoImporter (so that when you ...


0

It is not a "Finder" window. It is owned by Safari You have not made clear how you know which file to choose. So I assume you will be partially hard coding it into the script. This example assumes you are able to form a path string to the file. This example is also written to click and add an image to an Answer on one of these Ask-different pages. You ...


-1

Adding 'exit 0' on line two fixed it


0

You can do this using a launch Agent or Daemon. If you just want this to work for a certain user you would put the below plist in the users launchAgent folder located at ~/Library/LaunchAgents/ Otherwise set it system wide by using a launchDaemon and putting the below plist in the folder located at /Library/LaunchDaemons/ The below launch plist uses ...


0

I used the exact same settings that you did but used Command+Options+Control+L as the shortcut and it worked. The only things I can imagine is that that the key combination is already in use.


0

If you want an AppleScript, I adapted the script posted at: Shortcut to eject all external hard drives but not MobileBackups to this, and it works great. I've placed the applet for this in my dock to use right before I unplug. set exceptionsList to {"MobileBackups", "startup disk", "home", "net"} tell application "Finder" set diskList to the disks ...


1

Since it appears that Automator doesn't have a "Get Spotlight Comment" action (surprisingly), maybe you can do this with AppleScript. (See this forum) Something like: tell application "Finder" set thisItem to "Macintosh SSD:untitled folder" set Comm to comment of folder thisItem (* get comment *) end tell return Comm (* to return the Comment ...


0

You can use iTerm keyboard shortcut: New Tab: Command ⌘+T New Window: Command ⌘+N


0

You can create an AppleScript that emulates human entry manually. In other words, drag and drop AppleScript and force the application to become the frontmost application and then invoke a contextual menu click as if you clicked it with your mouse. Then re-save it as your service. And example, but not specific to your application would be: activate ...


0

As a test I created an Automator app that just copies finder items to a directory. "Copy Finder Items" Action And then used theFind=`mdfind -onlyin . 'kMDItemContentType == com.microsoft.excel.xls'`;automator -i "$theFind" /Users/UserName/Desktop/testF/test2.app The backpicks "`" insure that the first commands result is placed in the variable theFind ...


0

this is how I solved it: tell application "iTunes" repeat with theTrack in selection set theFile to location of theTrack tell application "Finder" to set theName to name of theFile set ayahInSurahCount to 0 --set ayah information from the name of the track set surahNumAsString to characters 1 thru 3 of ...


1

If the applications are scriptable like safari is, then you can possibly have a Applescript application running and checking if there is a selection. Then respond by running you task or calling the Automator workflow when there is. Afaik Applications do not send out notifications when text is selected so this would have to work using a periodic check. ...



Top 50 recent answers are included