Release notes for Scriptable

Build 20

New in this build:

  • New: Supports picking app icon independent from the app theme.
  • New: Introduces the Image API. All APIs that previously returned UIImage now returns Image.
  • New: Introduces the Data API which represents raw data. This is useful when working with file uploads.
  • New: Request.body can now be a Data object.
  • New: Added Request.addImageToMultipart() which converts the Request to a multipart HTTP request and adds image data to the body for uploading. The function automatically detects MIME type and file name.
  • New: Added Request.addFileToMultipart() which converts the Request to a multipart HTTP request and adds file data to the body for uploading. The function automatically detects MIME type and file name.
  • New: Added Request.addFileDataToMultipart() which converts the Request to a multipart HTTP request and adds file data to the body for uploading.
  • New: Added Request.addMultipartParameter() which converts the Request to a multipart HTTP request and adds a parameter with a name and value.
  • New: Added Message.addImageAttachment() which attaches an image to a message.
  • New: Added Message.addFileAttachment() which attaches a file to a message.
  • New: Added Message.addDataAttachment() which attaches a file in raw data to a message.
  • New: Added Mail.addImageAttachment() which attaches an image to a message.
  • New: Added Mail.addFileAttachment() which attaches a file to a message.
  • New: Added Mail.addDataAttachment() which attaches a file in raw data to a message.
  • New: Added FileManager.fileName() which gets the name of a file given a file path.
  • New: Added FileManager.fileExtension() which gets the extension of a file given a file path.
  • New: Added DocumentPicker.exportImage() which exports an image using the document picker.
  • New: Added ShareSheet.presentAndWait() which stalls execution of the scripts until the share sheet is dismissed.
  • New: Added privacy policy.
  • Changed API: Request.load() now returns Data instead of a string. Use Request.loadString() instead.
  • Changed API: FileManager.read() now returns Data instead of a string. Use FileManager.readString() instead.
  • Changed API: FileManager.write() now writes Data to disk instead of a string. Use FileManager.writeString() instead.
  • Changed API: ShareSheet.present() now takes an array of items rather than a single item. As a consequence, ShareSheet.presentActivityItems() have been removed.
  • Changed API: DocumentPicker.exportStringWithName() have been combined with DocumentPicker.exportString(). The name is now an optional argument.
  • Removed API: StringUtils. Take a look at the Data API instead.
  • Bugfix: The font size of the themes in Settings -> Theme was incorrect.
  • Bugfix: The title and subtitle was incorrectly aligned in a table cell.
  • Bugfix: The action extension could crash when certain editor fonts were selected.
  • Bugfix: The editor would scroll down to the bottom when running the script.
3 Likes