Tag Info

New answers tagged

0

I found my answer using AppleScript: https://support.shotgunsoftware.com/entries/127152-Launching-External-Applications-using-Custom-Protocols-under-OSX Create an AppleScript that uses on open location this_URL Save as Application Edit the Info.plist of the Application with: <key>CFBundleURLTypes</key> <array> <dict> ...


0

So this might be an Accessibility issue. I was able to resolve it by going to System Preferences>Security & Privacy>Accessibility and then making sure Terminal had a check in the checkbox under Privacy. This link does a great job of explaining it. Automator in Terminal And by the way console can be very useful in getting meaningful error messages. ...


1

Rename your .sh file to .command and you can cd to the directory that the .command file is located in with the following at the beginning of the file: cd "$(dirname $BASH_SOURCE)"


0

Breakaway is no longer maintained on its website, but it can still be downloaded from Sourceforge. I've associated it with the following two AppleScripts to mute the speaker and pause Spotify when the jack is disconnected, and to play Spotify when the jack is connected. Follow the instructions on makeuseof to see how to author AppleScript and connect it to ...


3

Path to Script In your AppleScript, you need to change the current working directory (cwd) before issuing the java command. Do this with an AppleScript line like: do shell script "cd " & quoted form of (POSIX path of file_path) & " && java -jar app.jar" The && is important. If the cd succeeds, the java command will be launched ...


-1

You must wait for OS 10.11. Finally Apple will allow even non-Developer users to export XCode projects in .app (same goes for iOS, which is .ipa, amiright?) Further infos on how-to in XCode 7 (which is still in beta version anyway): http://mhassan.me/2013/02/15/using-xcode-without-provisioning-profile/


0

Its hard to know exactly what you are trying to accomplish but some improvements were introduced into the code below, with comments added in the code. Several points: Note that depending on how fast/slow your system is responding you may need small delays after every keystroke or action. You'll have to figure the minimum time empirically. Any time you ...


0

So here is some final code that works for all windows, Finder and otherwise. Note the 4 second delay to switch to your window of interest is required. Without it the AppleScript Editor will always be frontmost. tell application "System Events" display dialog "Click OK, then immediately click on the target window. Whichever window is highlighted at 4 ...


0

Here is my take on what I understood you are trying to accomplish. The code is long winded on purpose. All you need to do is copy the code to the Applescript Editor, make any changes you want and save it as an application. As for the dialog about PowerPC application not supported, I don't know. Can you run it from the command line? I would check that to ...


1

Well you can ask Finder for its windows. The order returned is topmost to bottommost. If you have a specific window you want, and know its name then just ask it to activate... tell application "Finder" set w to (name of every window) set i to (id of every window) tell window named "Desktop" to activate get front window end tell And the ...


7

I can see a couple of things wrong there. Firstly you have opened a workflow and not an Application. You should choose Application when you make your selection for the type of Automator file. And the code you have will not work as you expect, since you have not changed directory. (cd). In the code as you have it, all it is doing is getting the path as ...


4

Can you change run.sh to run.command and get the user to double click it?


1

To have the selected text converted to upper case, along with having a space added between each character, add the following line to the script posted by Graham Miln. set myResult to do shell script "echo " & quoted form of (myResult) & " | tr [:lower:] [:upper:]" So in Automator it would be: on run {input, parameters} set myText to input as ...


3

AppleScript to Expand Text The following AppleScript snippet adds a space between each character of a string. Copy and paste this code in Applications > Utilities > Script Editor to try it out: set myText to "hello world" set myResult to "" repeat with c in every character in myText set myResult to myResult & " " & c end repeat display dialog ...


0

The solution is to "Reset Warnings" in Automator main menu -> Reset+Restart Automator:


0

You can probably "uninstall" this particular automator item, then reinstall it, at which point it should behave as it originally did. Assuming this is some an Automator Service or Folder Action you can find the item in ~/Library/Services or ~/Library/Workflows. To uninstall simply drag to the desktop. To reinstall click on the item and then click the ...


0

Using http://www.controlplaneapp.com should make it possible to quite easily do this (using a Mount Volume rule combined with an Action)


0

To complement the existing, helpful answers: The accepted answer works in principle, but: relies on extended attributes of the HFS+ filesystem, which are lost when copying the bundle to a filesystem that doesn't support them. For instance, you cannot store a custom icon in a Git repository. the icon displayed by the bundle itself, such as when showing an ...


1

Quick boot does it nicely. It's in the menu bar. http://www.macupdate.com/app/mac/25414/quickboot


0

I wanted to use AppleScript instead of BootChamp since I had a problems with an always-running webapp when it resumed state when returning to OS X instead of launching regularly. Trying to bless the volume from an AppleScript did not work on my iMac with a 3TB fusion drive so rebooting after the bless would lead to an error screen "NO BOOTABLE DEVICE - ...



Top 50 recent answers are included