I’m trying to calculate the next Sunday and it seems like using php in a shell script is the easiest way. This works fine as a php function:
Anyone want to help figure out why this returns nothing?
do shell script ("php -r 'echo date ('m/d/y', strtotime(\"Next Sunday\"));'")
Or, is there a pure Applescript way to determine the next Sunday from the day a script is run?