This file contains hidden or 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
Question: Which NSCharacterSet should I pass to -[NSString stringByAddingPercentEncodingWithAllowedCharacters:] | |
so that it works exactly like the deprecated CFURLCreateStringByAddingPercentEscapes() did? | |
Answer: Either URLFragmentAllowedCharacterSet or URLQueryAllowedCharacterSet | |
Explanation: | |
That answer comes from the following program output, which is the result of running | |
the code below it. | |
Frag Host Pswd Path Qery User CFnd |
This file contains hidden or 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
packExtensionForBrowser () { | |
echo "#" | |
echo "##### Building $productName as $type for $browser #####" | |
cd $sourceDir | |
# Remove .DS_Store file, if any | |
rm -f $productName/BrowserCommon.DS* | |
# Make a temporary directory path which we shall use for building |
This file contains hidden or 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
-- To load this library, see section titled "-- Using a handler in a .scpt library" at the top of One_Liners.scpt. | |
on testJerryLib() | |
return 0 | |
end testJerryLib | |
(* The bad thing about this handler is that it always asks the user for admin credentials whether or not they are actually needed to answer the question on the given path. | |
Obviously, you can remove the 'with adminstrator privileges'. Unfortunately, this will cause the method to return 'false' if an existing path cannot be probed because of bad permissions. I can't see any way to differentiate between inadequate permissions and nonexisting file because they both set errNumber = 54. | |
The -e checks for directories or files. To require that the given path be a directory, use -d. For file, use -f. For more variations, see: | |
http://www.cyberciti.biz/tips/find-out-if-file-exists-with-conditional-expressions.html *) |
This file contains hidden or 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
(* Actually running this script requires that several other tools be included into | |
the script's package. The entire package, which should include the latest version of | |
this script, may be downloaded from here: | |
http://sheepsystems.com/files/SSYTroubleZipper.zip *) | |
property scriptVersion : "0255 published 2014-12-04" | |
property companyUTI : "com.sheepsystems" | |
property ourProcessNames : {"Bookdog", "Bookwatchdog", "BookMacster", "Markster", "Smarky", "Synkmark", "Sheep-Sys-Worker", "Sheep-Sys-Quatch", "Sheep-Sys-Thomas", "Sheep-Sys-UrlHandler", "FileAliasWorker"} | |
-- The above are all acted upon in 'try' blocks, so it's OK if some don't exist in certain context(s). | |
property companyName : "Sheep Systems" |
This file contains hidden or 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
-- Version: Substantially rewrote on 2020 09 06 to use Graphics > Export Pages instead of | |
File > Print > Save as PDF. Also now works with Finale 26 and macOS 10.11 Big Sur (Beta 6). | |
Have not tested with earlier versions. | |
-------------------------------------------------- | |
-- Begin Parameters which you should edit | |
-------------------------------------------------- | |
-- Set saveDirPath to the path to the directory you always save your PDF outputs saved to. | |
-- Possibly starting with OS X 10.10.2, the "~" in the following no longer expands to your home folder. Path must start with /Users/<yourShortName> |
This file contains hidden or 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
#!/usr/bin/perl | |
=com | |
This script takes one parameter, the path/to/Members subdirectory of a YaBB 2.4 directory. It deletes files of any members who have registered more than 72 hours ago, and have never posted any posts that have not been removed. Presumably such members were registered by spammers' robots. | |
It also modifies the 'memberlist.txt' and 'memberinfo.txt' files in there appropriately, deleting the culled members. It does not touch the 'memberlist.inactive', which appears to be records of "new members who have not yet registered". | |
This script has been tested in Mac OS X and should work in any Unix system. |
This file contains hidden or 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
#!/usr/bin/perl | |
use strict ; | |
use IPC::Run ; | |
use File::Basename ; | |
use File::Util ; | |
# Sometimes this is necessary for modules in this directory to be found at compile time when running on my Mac: | |
use lib '/Users/jk/Documents/Programming/Scripts' ; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>CheckBuildDirXattrs</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/jk/bin/CheckAndClearXattrs.sh</string> | |
<string>/Users/jk/Documents/Programming/Builds</string> |
This file contains hidden or 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
#!/usr/bin/perl | |
=com | |
PURPOSE | |
This script will | |
Force you through a comprehensive quality-control checklist | |
Run Deploymate | |
Get the latest version number by reading it from product's Info.plist |
This file contains hidden or 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
#import <Cocoa/Cocoa.h> | |
#import "BkmxAppDel.h" | |
#import "BkmxGlobals.h" | |
enum BkmxParentingAction_enum | |
{ | |
BkmxParentingActionNone, // 0 | |
BkmxParentingAdd, // 1 | |
BkmxParentingRemove, // 2 | |
BkmxParentingCopy, // 3 |
NewerOlder