Skip to content

Instantly share code, notes, and snippets.

set thePList to "Users:JoeBuhlig:Dropbox:pList:Project_Codes.plist"
set thePListPath to POSIX path of thePList
tell application "System Events"
tell property list file thePListPath
tell contents
set pcode to value of property list item "HouseCar"
set yr to text -2 thru -1 of ("00" & (year of (current date))) as number
set y to text -6 thru -5 of pcode as number
set inc to text -2 thru -1 of pcode as number
if (yr > y) then
@mhawksey
mhawksey / gist:1276293
Last active October 23, 2023 09:00
Google App Script to insert data to a google spreadsheet via POST or GET - updated version as per https://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software