objective-c,osx,swift,applescript,nsappleeventdescriptor
You can use if…let syntax to simultaneously check the result for nil and unwrap it if it has a value. descriptorAtIndex won’t get what you want because the descriptor doesn’t contain a utxt entry – it is a utxt entry (you can see this by printing out result.descriptorType which will...
swift,applescript,nsapplescript,nsappleeventdescriptor
Is seems that LongDateTime is a signed 64-bit integer which represents a date d as the number of seconds since January 1, 1904, GMT, adjusted by the time-zone offset for d in the local time zone (including daylight-savings time offset if DST is active at d). The following code gives...