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
-- Appropriated from: http://hints.macworld.com/article.php?story=20041104011839378 | |
on adding folder items to this_folder after receiving these_items | |
try | |
tell application "Finder" | |
repeat with i from 1 to number of items in these_items | |
try | |
set this_item to item i of these_items | |
set the path_string to this_item as string | |
set the final_path to POSIX path of the path_string | |
do shell script "/usr/bin/lp '" & final_path & "'" |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Xml; | |
// Compile and run via the command line: | |
// > XmlFormatter.exe < BadXml.xml > GoodXml.xml | |
// If GoodXml is ignored, it will print to stdout. |
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
do shell script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --allow-ssl-mitm-proxies" | |
-- This is to disable the feature in Chrome 6 that causes the "Error 128 (net::ERR_SSL_UNSAFE_NEGOTIATION)" | |
-- when behind an Internet filter that modifies the request to an https Url. | |
-- Copy it to AppleScript and save it as an application to easily run. | |
-- Make sure that there are no other Chrome windows open when you run this. |
NewerOlder