Tag Info

New answers tagged

0

You can create Launch Agent and place it inside /Library/LaunchAgents directory. This will ensure Your code to be run as root. Here's Apple documentation about Launch Agents. You'll need to create plist file, it'll look like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...


0

Where is your new email service? Perhaps you can configure it to check your AOL mailbox and pull it down. This would happen automatically on their servers and wouldn't require a script on your side. For example, if your new email service was with Gmail, go into the Settings>Accounts tab and add your AOL account to the "Check mail from other accounts" ...


0

I have found a workaround. In that list, let’s call it Downloads, I have put the word “downloads” in every reminder item. Like so: Downloads Download http://arstechnica.com/apple/2014/10/os-x-10-10/24/#javascript-automation Download https://www.apple.com/downloads/dashboard/ Redundant and not too pretty, but it works. The way I accomplished this was ...


2

You can use Automator.app to create a service for this. Open new Automator document as a service, choose on top, that You won't have an input of any type. Then add a block Run AppleScript, enter this code: on run {input, parameters} tell application "System Events" keystroke tab keystroke tab keystroke (ASCII character 31) --down ...


0

Here you go. It works just fine on Snow Leopard.


0

Automator itself does not ship with self referencing Automator actions. GUI Scripting Alternative approaches include using GUI Scripting to automate interactions with the Automator application. See Accessibility Preferences and GUI Scripting for an example of how to set this up on recent versions of Mac OS X. automator Command Line Tool OS X includes an ...


0

Okay, my way is to ask Safari do javascript which will get all what I need (I mean urls of full-images) for current page, when user presses hotkey. The trick is that when you select (hower) image, you see a black box at bottom of mini-image. Certanly, it means that HTML has been changed, so I just figured out that changes (display property changes from none ...


0

If I understand the question correctly all you need is to get the current directory of the application. Quick looking through SE answers pulls out this: set YourPathVariable to POSIX path of ((path to me as text) & "::")


0

Perhaps the trick is to identify where the system gets its default settings for creating a .DS_Store file and modify those settings. This would, in theory, make the Finder perform the way you would like as it's default. Other methods seem to have significant pitfalls and unfortunately force the view to icon using the browser window in the finder. I ...


1

iBooks doesn't have AppleScript support. The annotations are stored in a SQLite file: ~/Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation/. You could try to parse that. This answer gives a link to Digested, which reads that database and then allows you to export your annotations to Evernote, but I don't know what formatting they'll have or ...


0

Try this format:-the Order is MAC Address, hostname (fqdn or not), Computer name (optional), Bonjour name (optional) 00:2c:76:8d:28:3b -automatic- Computer 1 Computer 1 00:2c:76:8d:28:2b -automatic- Computer 2 Computer 2 00:2c:76:8d:28:1b -automatic- Computer 3 Computer 3


1

This can be done using AppleScript, like in the question you linked to. Watch out, this is not the same as Automator. Example script: osascript -e 'tell application (path to frontmost application as text) set myFile to choose file POSIX path of myFile end' This uses the simplest form of the choose file command, and puts the result in the variable myFile. ...



Top 50 recent answers are included