Tag Info

Hot answers tagged

3

This is the easiest, non-technical, method: (I'm on Snow Leopard, I've edited these to match Mavericks - the exact buttons to click may be wrong) Make an Applescript and type this: tell application "iTunes" to activate Open Calendar.app Make a new event today for 00:00 Set it to repeat every day Alert should be Open file. Select Other > find the ...


2

You can also run EDITOR=nano crontab -e and add lines like this: 0 0 * * * open -a itunes 0 5 * * * osascript -e 'quit app "itunes"'


2

You can obtain the number of unread items with the following AppleScript: tell application "Mail" to get the count of messages of mailbox "INBOX" of account "Me" As you mentioned you could write a menu bar item, you could use this AppleScript for it. Alternatively, you can do this with Mail Unread Menu. However, I'm not sure if it works with Mavericks. ...


2

Save this as text.scpt in Script Libraries folder on removeText(searchText, sourceText) set {TID, text item delimiters} to {text item delimiters, searchText} set sourceText to text items of sourceText set text item delimiters of AppleScript to "" set sourceText to sourceText as text set text item delimiters to TID return sourceText ...


2

Try this: -- Window Moving Script between multiple monitors for Apple Mac OS X 10.x -- (something I've been doing with UltraMon for quite a while) -- inspired by: -- http://www.tidbits.com/webx?14@@.3c7b1ae3/5 -- http://macscripter.net/viewtopic.php?id=24511 -- and http://daringfireball.net/2006/12/display_size_applescript_the_lazy_way -- thanx ...


2

First thing is that the rating value is just stored as "rating". But iTunes stores the star rating as a value between 0 and 100, so you need to convert from that value to the number of stars. There might be a smarter way to do this but this code seems to work. tell application "iTunes" set theTrack to (item 1 of (get selection)) set theRating to ...


1

You can avoid the problem at compile by dynamically choosing the apps in system events. tell application "System Events" set App1 to (first process whose name is "App") tell App1 set frontmost to true set position of window 1 to {8, 22} end tell end tell Then do the same for App2.


1

For reading a text file of hostnames into an AppleScript list, see Read textfile into list in Applescript. For looping over hostnames within your AppleScript list see An AppleScript list iterate/loop example: set myList to {"Hello", "Goodbye", "I must be going"} repeat with theItem in myList say theItem end repeat do shell script To avoid launching ...


1

I just hacked together this little tool. https://github.com/vorgos/QuickGrab It is a command line tool that will capture the top most active window or any window you specify just like the -l option in the newer version of screencapture. Hope that helped.


1

Install Homebrew, run brew install ffmpeg, and then run something like cd ~/containing/folder;for f in *.aif;do /usr/local/bin/ffmpeg -i "$f" -ss 0:12:34 -t 0:0:5 -c copy "${f%.aif}-clip.aif";done where -ss 0:12:34 is the starting position and -t 0:0:5 is the duration.


1

If your priority is to get second Google Drive working regardless of how: I gave up on Installing Google Drive on my Mac. Instead, I use its Web Interface works great and does not interfere with my Mavericks. For easy and fast access you can create a Dock Icon for it, that looks like a @ on a spring :) Pro and Cons I found: a big Pro is no more ...


1

Well -- figured this one out! Overlooked that you could set iCal to open a file at a certain time. Set it to open up the Automator action *works perfectly!. Even when iCal isn't open. –


1

To my knowledge, there is nothing to automatically run any script on double-script (I am most likely wrong). The best solution I've found is Automator. It's preinstalled. You want to create a service, which will place scripts into a context menu (right-clicking on file). For your actions, you want to find the action "Run Shell Script". From there, you can ...


1

Taking a screenshot of the front-most window (via shift-command-4 spacebar click) won't suit?


1

For local files/folders you can use spotlight's command line tools. In Terminal $ mdfind -onlyin ~/ "kMDItemDisplayName == 'xyz*' && kMDItemKind == 'Folder'" will give you all folders whose name starts with xyz with the search begining from your home folder ~/. Remove * in xyz* above to find an exact match. For more information on mdfind read ...



Only top voted, non community-wiki answers of a minimum length are eligible