Tag Info

New answers tagged

1

This worked set appName to "username" set appPass to "password" tell application "System Events" repeat while exists (processes where name is "SecurityAgent") tell process "SecurityAgent" if exists (text field 1 of window 1) then set value of text field 1 of window 1 to appName set value of text field ...


-1

Nevermind, solved! Just added an applescript for switching windows using the shortcut "backtick"+command


0

To add one Desktop Space to each monitor/display: do shell script "/Applications/Mission\\ Control.app/Contents/MacOS/Mission\\ Control" delay 0.5 tell application "System Events" to click (every button whose value of attribute "AXDescription" is "add desktop") of group 1 of process "Dock" delay 0.5 do shell script "/Applications/Mission\\ ...


3

Based on this from an old Applescript Release Notes on sandboxing… When sending commands to a sandboxed application, such as TextEdit in OS X Mountain Lion, parameters that refer to files must be of an explicit file-like type and not a bare string, or the target application will not be able to access the file. For example, file "Macintosh ...


0

Yes. This is able to be done with Automator in a number of ways. One of many ways to do this is to create a service in Automator and then set the keyboard shortcut using System Preferences. In Automator, one would simply create a service and set: Service receives no input in any application, then add Get Specified URLs(and specify the webpages you want to ...


0

Did you know about the "~/Music/iTunes/iTunes Media/Automatically Add to iTunes" folder? Anything you copy to this folder will automatically be added to iTunes. Have you tried adding content this way?


0

If you want to create a service on demand create a service with Automator and enter /usr/bin/VBoxManage startvm "Ubuntu" headless & with the same settings as in your screenshot and that's it. And here is a nice icon for the service to get rid of the default one: Coipy and paste it in the info window. If you want to start it at log-in create a ...


1

Basically you want to find a bunch of files which are empty (have size 0 bytes) and then change their content to "This file is empty". cd to/wherever/the/files/are find . -type f -size 0 -print | while IFS= read -r line; do echo "This file is empty" > "$line" done If instead you want to remove them, run cd to/wherever/the/files/are find . -type f ...


0

This is rather easy combining some standard tools: file for looking up the mime type tr to remove the slashes (otherwise, you'd have nested folders for different file groups) well, some obvious mkdir and mv commands for file in * do mime=$(file --brief --mime-type "$file" | tr '/' '_') mkdir -p "$mime" mv "$file" "$mime/$file" done ...



Top 50 recent answers are included