• 0 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle


  • Falsehoods About Time

    Having a background in astronomy, I knew going into programming that time would be an absolute bitch.

    Most recently, I thought I could code a script that could project when Easter would land every year to mark it on office timesheets. After spending an embarrassing amount of…er…time on it, I gave up and downloaded a table of pre-calculated dates. I suppose at some point, assuming the code survives that long, it will have a Y2K-style moment, but I didn’t trust my own algorithm over the table. I do think it is healthy, if not essential, to not trust your own code.

    Falsehoods About Text

    I’d like to add “Splitting at code-point boundary is safe” to your list. Man, was I ever naive!


  • Well, Shortcuts comes from the iOS world and is a relatively recent addition to macOS. Automator originated in macOS and I don’t think it has made it over to iOS at this point?

    That’s not even the full extent of it though. Before Automator, there was Script Editor, which could also create script applications, but that doesn’t seem to work so well anymore. Automator has become the preferred approach for that. But Script Editor is still around and is useful for looking up AppleScript dictionaries. These tell you if a given application offers special scripting support, and there are also a few general dictionaries like StandardAdditions that are worth a gander. I wish AppleScript existed for iOS.

    And then there’s the command line approach of using crontab to open your files with the open command. And osascript lets you run any AppleScript from the command line.







  • I agree with you to an extent in that I would not want Siri producing a thesis every time I ask a simple question. But I think one thing that would help is if she remembered the last few things you requested and builds some sort of context around it? That’s what impressed me most about chatgpt. If it doesn’t quite give me what I’m looking for, I could clarify it and we’d eventually get there. Siri is like a person with severe short term memory loss, and much of my frustration comes from that.