I’ve noticed that QuickLook preview often fails for me, and have just realized that this is occurring when the .scpt was generated by Script Debugger on one Mac & transferred via iCloud to another Mac.
Local QuickLook Works:
But when transferred through iCloud, all you get is this:
On closer inspection, it seems as though Script Debugger is appending the QuickLook information in the resource fork of the file (extended attribute
com.apple.ResourceFork), which would explain why the information does not survive the trip through iCloud.
iCloud only syncs certain extended attributes (see Which extended attributes does iCloud preserve, and which get stripped? – The Eclectic Light Company); normally these must be suffixed with the
XATTR_FLAG_SYNCABLE flag (“S” following the flag separator “#”) to pass through iCloud. The
com.apple.ResourceFork unfortunately does not appear to sync.
So, my question:
Would it be possible for Script Debugger to save the QuickLook information in a different extended attribute (such as
com.latenightsw.ScriptDebugger#PS), to act as a fallback if the main
com.apple.ResourceFork is not present?
(On an unimportant side note, the file icon displayed in column always seems to be very low-resolution; not sure if that just needs updated).