New answers tagged automator
0
you could ssh root@apple-tv.local killall AppleTV, also you might want to change your passwd from the default. As for a icon, you could but the above into a file and name it with a .sh extention, which could then be 'clicked on'.
If you don't want to be prompted for a ssh passwd, set up some ssh keys.
Setting up ssh keys
If you already have a key on your ...
1
I don't think its possible, at least in a "conventional" way. That contextual menu is populated by adding accounts to the Mail, Contacts & Calendar preference pane, not sure if its even possible to build a workaround for that.
1
I haven't tried it but I would suggestion following :
Copy your automator service in /System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/PlugIns/
rename it Servicename.sharingservice
Now edit /System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/Resources/SHKServicesOrder.plist by adding your service. (CFBundleIdentifier in ...
0
From this tip, it looks like you need to edit:
/System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/Resources/SHKServicesOrder.plist
Don't have a Mac in front of me to try it.
0
I am not sure what is triggering it (assuming it is not you)
Try rebuilding your launch services database.
run the following terminal command
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
0
In the original documentation it says that VMWare keeps a session open for 30 minutes if not used.
So not sure that is your problem.
One dirty trick is to tell the other site you are still there by simply pinging them.
In Terminal write this simple command and let it run as long you like(to stop it use ctrl+c)
ping -i 300 IP
the 300 is the time to wait ...
1
You could repeat key code commands until the frontmost application changes:
delay 1
activate application "TextEdit"
tell application "System Events"
repeat while (path to frontmost application) is (path to application "TextEdit")
repeat 3 times
key code 123
delay 0.3
end repeat
repeat 3 times
...
1
I just did some tests : AppleScript is not well suited for what you ask since it is Single Threaded. Therefore exiting the loop in such situation does not seem possible.
Here is a code that do what you want but without exiting the loop.
tell application "VisualBoyAdvance" to activate
repeat while true
set mydate to current date
repeat while ...
0
You could use a Create Archive action and rename the resulting archive:
d=${1%/*}
start="$d/${d##*/}"
name="$start.zip"
i=2
while [[ -e $name ]]; do
name="$start $i.zip"
let i++
done
mv "$1" "$name"
open -R "$name"
Or use a run shell shell script action like this:
for n in $(seq $(printf %s "$@" | tr -dc / | wc -c)); do
uniq=$(printf %s\\n "$@" | ...
0
In Automator:
Add Get Selected Finder Items
Add Run Applescript
Inssert this code for the Applescript:
on run {input, parameters}
set pathList to {}
repeat with itemNum from 1 to count of input
tell application "System Events"
copy POSIX path of (container of (item itemNum of input)) to end of pathList
end tell
end repeat
return pathList
end run
...
1
Opening an Automator application starts a process named Application Stub, but killall Application\ Stub doesn't terminate its child processes.
$ sleep 1 && open ~/Desktop/Untitled.app/ & sudo execsnoop
[1] 650
UID PID PPID ARGS
501 655 650 open
501 656 143 Application Stub
501 657 143 Automator Launch
501 658 ...
1
Your app does start the process and then quits itself straight away leaving the process running.
You could try and check in the Automator action to see if the process is running. if it is quit it, if it is not launch it.
isRunning=`ps aux | grep -i "Textedit.app"| grep -v grep`
if [ $isRunning -eq "" ]; then
echo "is Not Running"
...
2
I don't know how it compares against other options, but you could use pdfotext. It can be installed with brew install xpdf.
do shell script "/usr/local/bin/pdftotext /usr/share/doc/bash/bash.pdf -" without altering line endings
Calibre also comes with some command line utilities:
/Applications/calibre.app/Contents/MacOS/ebook-convert ...
0
If you print from the command line with lp you can do something like:
lp -o media=Custom.4x6in filename
That will print at 6x4 on the default printer the file called filename.
On my HP inkjet that made it pick the photo tray over the main tray.
So, put the above in a script and have automator run it pointing at the directory with the files in.
Top 50 recent answers are included
