Tag Info

New answers tagged

2

There is really only one syntax mistake that you made. You put a space before Number in $ApplicationVersionNumber. However, most apps don't have a version.plist file. However, they always have the version in their Info.plist. Here is a fixed version of the script with a few improvements: #!/bin/sh ApplicationName=/Applications/FakeApp.app ...


0

You can use the Launch Application action:


1

This AppleScript will open the specified folder in VLC and begin to play the contents: tell application "VLC" OpenURL "file:///Users/grgarside/Desktop/test/" play end tell


0

In your script you can put : echo "Input subnet" read subnet to get user input and store it in a variable called subnet. Though there is obviously no checking to see if you entered a valid subnet.


1

Just kill the loginwindow process. sudo pkill loginwindow You could get fancy and specify the user if multiple users have a loginwindow process, but this is an easy one shot, no prompt way to end a user's graphical session.


5

This has worked for me in the past: Log out (with confirmation) osascript -e 'tell app "System Events" to log out' Log out directly (no confirmation) osascript -e 'tell app "System Events" to «event aevtrlgo»' or osascript -e 'tell application "loginwindow" to «event aevtrlgo»' This way any running application will get noticed and can terminate ...


1

From the man page of skill These tools are obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands instead. so you could use pkill -KILL -u uid. But why kill every process with the KILL signal? You can just call exit after your script: script.sh ; exit


0

Try to run the script with launchd instead. Save a property list like this as ~/Library/LaunchAgents/some.label.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> ...


1

Worked great to solve the Mavericks bluetooth always discoverable nightmare using the following script: #!/bin/sh defaults -currentHost write com.apple.Bluetooth DiscoverableState -bool no launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist 2> /dev/null launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist


1

just tried this on several VIDEO_TS and works perfectly. hdiutil makehybrid -iso -joliet -udf -udf-volume-name $folder -o $fullpath.iso $fullpath ps. I've never found out how to make ISOs out of VIDEO_TS using handbrake. I don't think this is possible.



Top 50 recent answers are included