This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# plutil.pl 1.6 - implementation of binary/UTF-8 (text) XML conversion of plist files | |
# does not (yet) support OS X plutil command line syntax | |
# 1.0 - first public release | |
# 1.1 - added support for date Type 3; fixed real Type 2 | |
# 1.2 - fixed handling of empty arrays | |
# 1.3 - fixed handling of large strings and empty keys | |
# 1.4 - write utf8 in XML, convert as necessary on read | |
# 1.5 - read/write 8 byte integers and negative integers; handle special XML chars in dictionary keys | |
# - now requires Math::BigInt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taken from user Albert's answer on StackOverflow | |
# http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title | |
# tested on Mac OS X 10.7.5 | |
global frontApp, frontAppName, windowTitle | |
set windowTitle to "" | |
tell application "System Events" | |
set frontApp to first application process whose frontmost is true | |
set frontAppName to name of frontApp |