Tag Info

Hot answers tagged

3

The way I've solved this is in the past is by bundling the contents of the virtualenv directory into Platypus and then activating the bundled Python interpreter with a script. Here's a screencap of the Platypus interface to show you what I mean: You'll notice that I've bundled the entire venv directory (which was created with the virtualenv command), and ...


3

The answer to this is surprisingly simple: $ osacompile -o output.app input.applescript This works for both plaintext .applescript files and the .scpt files that Script Editor makes. You can use a pipe too, e.g. if you have the script on your clipboard: $ pbpaste | osacompile -o output.app Or -e, like the osascript command can use: $ osacompile -o ...


3

The question itself isn't exact too, because the OP talks about: files names like ABC 123456 (without extension), but in the example code using *.txt extension add a dash between two blocks (e.g. where is the space) like ABC - 123456, but in the next taking about counting to 4 and count 3, e.g. not exacltly clear what the script should do for example if ...


2

Here is the solution. The script that generates the link, generats a url that starts with a custom googledrive:// and then the path to the file in the Google Drive folder. I then set lincastor to trigger the following script for urls beginning with googledrive:// on handle_url(args) set theUnixPath to |URL_PATH| of args set theUnixPath to (POSIX ...


2

It's probably a bug, but there's a strange workaround. After highlighting the Eyedropper icon, click and drag on the color next to it on the left.


2

If your file names are "ABC 123456" with single space between the first 3 and the following, then you are trying to replace the space with a character (or dash or something), so to look like ABC-123456. I found this article that explains how to do that. Example: Note that the following command will only replace spaces with hyphens. If you need a different ...


1

Register at Prowl Install the Prowl iOS app on your iPhone Use this script in OSX ('sendClipboardAsPush.sh') to send your clipboard to your iPhone as push notification: #!/bin/sh set -x # Posts growl notifications to iOS device using prowl & curl # Fill in with your own Prowl API key here and remove 123456789 APIKEY=123456789 # Make up a cache ...


1

You can use the following script to show the idle seconds ticking up, from Inactivity and Idle Time on OS X: #!/usr/bin/env perl my $idle_seconds_command = 'echo $((`ioreg -c IOHIDSystem | sed -e \'/HIDIdleTime/ !{ d\' -e \'t\' -e \'}\' -e \'s/.* = //g\' -e \'q\'` / 1000000000))'; print "Counting seconds of inactivity... Command + Period (.) to quit\n\n"; ...


1

tell application "Terminal" activate tell application "System Events" to keystroke "n" using {command down} end tell Should do the job.


1

You're embedding RandomNumA inside a literal (double-quoted) string, so it's treated as part of the literal rather than as a variable reference. To get it interpreted as a variable, you have to do the same thing you do in the do shell script command at the end -- use & to append a quoted literal, a variable reference, and another quoted literal. ...


1

If you go to System preferences -- Accessibility-- Speakable items In settings turn on speakable items, and you can provide a keyword. After saying the keyword you can say commands.


1

I only got a partial solution, which works apart from a few small issues. First of all, you can not store the URL in the filename (due to slashes and special characters) so you'd need to specify the Website name. But more importantly, so far the CSV import is not implemented. Is CSV really a hard requirement, or could you get the list of URLs in a ...


1

tell application "Numbers" activate end tell


1

The app is called LinCastor. (It can also be installed with homebrew cask if you have it.) First click "add new scheme" in the bottom left of the main window, then change the title to whatever you like and the "scheme(s)" to x-applescript-runner. Change the "handler" below from AppleScript to Shell, and paste this code in: #!/usr/bin/env python ...


1

I found the settings file by using the terminal command opensnoop to monitor all files accessed by any programm and found that the file that stores the underscan setting is here: /var/db/.com.apple.iokit.graphics



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