Tag Info

New answers tagged

2

I'm not sure I understand correctly - if in the third line of Your script You're checking whether ftp service is running You can use following script: #!/bin/bash launchctl list | grep ftpd if [ $? != 0 ]; then IPADDR=$(ifconfig -a | perl ...


0

I'm unable to reproduce this. Automator seems to returns all files/folders, whether they are symlinks or not. I set up the following: $ mkcd testfolder $ mkdir originalfolder $ ln -s originalfolder symlinkoforiginal $ ls total 24 drwxr-xr-x 5 grgarside staff 170B 23 Jul 20:04 ./ drwx------@ 11 grgarside staff 374B 23 Jul 20:04 ../ -rw-r--r--@ 1 ...


1

You can use Sidekick which lets you perform 'actions' when changing location. The location is reported using the specific Wi-Fi, which means you can do things when the Wi-Fi changes. Sidekick is an application that automatically updates your laptop settings based on where you are. Just install the app, configure the places that you frequent, (home, work, ...


0

You can use ControlPlane where you can set up rules to carry out tasks such as opening apps based on various criteria which includes connecting to Wi-Fi. ControlPlane supports multiple contexts where a context is defined as a location or activity you are performing. Using evidence sources you can create a set of rules that tell ControlPlane what context ...


0

Open Automator, choose the service template, change "Service receives selected" to "files or folders", add a Run Shell Script action, change "Pass input" to "as arguments", and change the command to: for f;do /Applications/calibre.app/Contents/MacOS/ebook-convert "$f" "${f%.*}.mobi";done Or if you add 2mobi() { for f; do ...


0

After you launched "Automator" and created a workflow: Select "Files And Folders" at "Actions". Double click on "Find Finder Items" and setup what and where to find your files. Which means: select the folder where the first group of pictures are stored. And enter the search condition (Name contains "whomever"). Run the workflow to see the result - you ...


0

OK, I've come with a small script to rsync the two folders #!/bin/bash # target folder TARGET_VOLUME="/Volumes/Data/"; TARGET_FOLDER="Pictures/Lightroom/"; TARGET=${TARGET_VOLUME}${TARGET_FOLDER}; if [ ! -d $TARGET ] then echo "ERROR: Folder $TARGET_FOLDER in Volume: $TARGET_VOLUME not found"; exit; else echo "Backing up Lightroom catalog..."; ...


0

I just popped open Automator to see if any actions are available that could be strung together to do this. It looks to me like this is something that you would need to create using Apple Script. Take a look at the this forum thread: http://hintsforums.macworld.com/showthread.php?t=115494 The post by rccharles has example apple script that could be used to ...


0

Okay, so I've found a solution using AppleScript, it's a fairly big script but it's not actually all that complicated; it simply loops through the mailboxes of every count, skipping any specified in a list, and looks for read, undeleted messages older than the specified number of days. on run arguments # Don't run if Mail isn't open if application ...


1

You can use Keyboard Maestro: Repeat script with 'is disconnected'. You may need to change the USB device name. AppleScript from shell script: Toggle Natural scrolling from command line with reload


0

One option is a third party product like the one discussed here or the free SleepWatcher. Another option is to write a script to query the status using ioreg. Here is snipset from code that I found elsewhere sometime ago... set Cap to (do shell script "ioreg -w0 -l | grep ExternalChargeCapable") tell Cap to set {wallPower} to {last word of paragraph 1} if ...


0

I've just tested this with the following workflow, selecting the Legal Notices.pdf from Photoshop CC as my sample, and it worked fine, keeping all annotations on the PDF. One thing to note that may be causing the problem is that the PDF is not saved. When adding annotations to a PDF, don't forget to save the PDF before running the workflow. If Preview ...


0

You can do this multilpe ways, one is to use applescript to do a 'for each' loop. Take this applescript code snippet as an example and work it out from there. on adding folder items to this_folder after receiving these_items repeat with an_item in these_items tell application "Adobe Photoshop CC" activate open an_item ...



Top 50 recent answers are included