AppleScript NSPDFImageRep

[PDF]PDFをイメージファイルに変換する(注釈イメージを除く)

【スクリプトエディタで開く】


#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
use AppleScript version "2.6"
use framework "Foundation"
use framework "Quartz"
use framework "CoreImage"
use framework "AppKit"
use scripting additions

property refMe : a reference to current application


on run
  
  set aliasIconPass to (POSIX file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/MultipleItemsIcon.icns") as alias
  set strDialogText to "ドロップしても利用できます"
  set strTitleText to "PDFファイルを選んでください"
  set listButton to {"ファイルを選びます", "キャンセル"} as list
  display dialog strDialogText buttons listButton default button 1 cancel button 2 with title strTitleText with icon aliasIconPass giving up after 1 with hidden answer
  
  set aliasDefaultLocation to (path to desktop folder from user domain) as alias
  set listChooseFileUTI to {"com.adobe.pdf"}
  set strPromptText to "ファイルを選んでください" as text
  set strPromptMes to "PDFファイルを選んでください" as text
  set listAliasFilePath to (choose file strPromptMes with prompt strPromptText default location (aliasDefaultLocation) of type listChooseFileUTI with showing package contents, invisibles and multiple selections allowed) as list
  
  -->値をOpenに渡たす
  open listAliasFilePath
end run


on open listAliasFilePath
  
  ##########################
  ####ファイル形式ダイアログ
  ##########################
  set listChooser to {"JPEG", "PNG", "BMP", "TIFF"}
  try
    set listResponse to (choose from list listChooser with title "選んでください" with prompt "書き出し形式" default items (item 2 of listChooser) OK button name "OK" cancel button name "キャンセル" without multiple selections allowed and empty selection allowed)
  on error
    log "エラーしました"
    return "エラーしました"
  end try
  if listResponse is false then
    return "キャンセルしました"
  end if
  set strResponse to (item 1 of listResponse) as text
  ################################
  ###カラープロファイルを読み出しておく ファイルはお好みで
  set strIccFilePath to "/System/Library/ColorSync/Profiles/sRGB Profile.icc"
  set ocidIccFilePathStr to (refMe's NSString's stringWithString:strIccFilePath)
  set ocidIccFilePath to ocidIccFilePathStr's stringByStandardizingPath
  set ocidIccFilePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:ocidIccFilePath isDirectory:false)
  set ocidProfileData to refMe's NSData's alloc()'s initWithContentsOfURL:ocidIccFilePathURL
  
  ##########################
  ####ファイルの数だけ繰り返し
  ##########################
  repeat with itemAliasFilePath in listAliasFilePath
    ####まずはUNIXパスにして
    set strFilePath to (POSIX path of itemAliasFilePath) as text
    set ocidFilePathStr to (refMe's NSString's stringWithString:strFilePath)
    set ocidFilePath to ocidFilePathStr's stringByStandardizingPath
    set ocidFilePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:ocidFilePath)
    ####ファイル名を取得
    set ocidFileName to ocidFilePathURL's lastPathComponent()
    ####ファイル名から拡張子を取っていわゆるベースファイル名を取得
    set ocidPrefixName to ocidFileName's stringByDeletingPathExtension
    ####コンテナディレクトリを取得
    set ocidContainerDirURL to ocidFilePathURL's URLByDeletingLastPathComponent()
    ########################
    ###保存先ディレクトリを作成 
    set strPrefixName to ocidPrefixName as text
    ###ディレクトリ名はお好みで
    set ocidSaveDirName to (strPrefixName & "_images") as text
    ##保存先URL
    set ocidSaveFileDirPathURL to (ocidContainerDirURL's URLByAppendingPathComponent:ocidSaveDirName isDirectory:true)
    ###フォルダ作成
    set appFileManager to refMe's NSFileManager's defaultManager()
    set ocidAttrDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
    (ocidAttrDict's setValue:511 forKey:(refMe's NSFilePosixPermissions))
    set listBoolMakeDir to (appFileManager's createDirectoryAtURL:(ocidSaveFileDirPathURL) withIntermediateDirectories:true attributes:(ocidAttrDict) |error|:(reference))
    #####################
    #### 本処理
    #####################
    ####PDFファイルを格納
    set ocidActivDoc to (refMe's PDFDocument's alloc()'s initWithURL:ocidFilePathURL)
    ####ページ数
    set numPageCnt to ocidActivDoc's pageCount() as integer
    ###ページ数カウンター
    set numCntPageNoJs to 0 as number
    
    repeat numPageCnt times
      ####PDFの対象ページを格納
      set ocidPdfPage to (ocidActivDoc's pageAtIndex:numCntPageNoJs)
      ###アノテーション注釈を削除
      set ocidAnotationArray to ocidPdfPage's annotations()
      repeat with itemAnotationArray in ocidAnotationArray
        (ocidPdfPage's removeAnnotation:itemAnotationArray)
      end repeat
      set numCntPageNoJs to numCntPageNoJs + 1 as number
    end repeat
    ####PDFDocumentNSDataに変換して
    set ocidDataRep to ocidActivDoc's dataRepresentation()
    ####NSdataに格納
    set ocidReadPdfData to (refMe's NSData's alloc()'s initWithData:ocidDataRep)
    ####NSPDFImageRepに変換
    set ocidPdfPep to (refMe's NSPDFImageRep's alloc()'s initWithData:ocidReadPdfData)
    ###ページ数数えて
    set numPageCnt to ocidPdfPep's pageCount() as integer
    ###ページカウントの書き出しファイル用のページ番号
    set numCntPageNo to 1 as integer
    ###ページカウントの初期値JS
    set numCntPageNoJs to numCntPageNo - 1 as integer
    ####################
    #####ページ数だけ繰り返し
    ####################
    repeat numPageCnt times
      ####順番にページデータを読み出し
      (ocidPdfPep's setCurrentPage:numCntPageNoJs)
      ####ページデータをNSIMAGEに格納
      set ocidPageImageData to refMe's NSImage's alloc()'s init()
      (ocidPageImageData's addRepresentation:ocidPdfPep)
      ###中間ファイルとしてのTIFFに変換
      set ocidOsDispatchData to ocidPageImageData's TIFFRepresentation()
      ####出力されるBmpImageRepに格納
      set ocidBmpImageRep to (refMe's NSBitmapImageRep's imageRepWithData:ocidOsDispatchData)
      #############################
      #####変換設定 オプション設定
      #############################
      if strResponse is "JPEG" then
        ###可変レコードに
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        ###各種値をキーでセットしておく
        (ocidPropertyDict's setObject:1 forKey:(refMe's NSImageCompressionFactor))
        set ocidSetColor to refMe's NSColor's whiteColor()
        (ocidPropertyDict's setObject:ocidSetColor forKey:(refMe's NSImageFallbackBackgroundColor))
        (ocidPropertyDict's setObject:ocidProfileData forKey:(refMe's NSImageColorSyncProfileData))
        ####ファイルタイプの指定
        set ocidFileType to refMe's NSBitmapImageFileTypeJPEG
        ###パスで使う拡張子
        set strExtension to "jpg"
        
      else if strResponse is "PNG" then
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        (ocidPropertyDict's setObject:true forKey:(refMe's NSImageInterlaced))
        ####ガンマ値が不要な場合はコメントアウト
        (ocidPropertyDict's setObject:0.45455 forKey:(refMe's NSImageGamma))
        (ocidPropertyDict's setObject:ocidProfileData forKey:(refMe's NSImageColorSyncProfileData))
        set ocidFileType to refMe's NSBitmapImageFileTypePNG
        set strExtension to "png"
        
      else if strResponse is "BMP" then
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        set ocidFileType to refMe's NSBitmapImageFileTypeBMP
        set strExtension to "bmp"
        
      else if strResponse is "TIFF" then
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        (ocidPropertyDict's setObject:1 forKey:(refMe's NSImageCompressionFactor))
        (ocidPropertyDict's setObject:(refMe's NSTIFFCompressionNone) forKey:(refMe's NSImageCompressionMethod))
        (ocidPropertyDict's setObject:ocidProfileData forKey:(refMe's NSImageColorSyncProfileData))
        set ocidFileType to refMe's NSBitmapImageFileTypeTIFF
        set strExtension to "tiff"
        
      end if
      ##########変換
      set ocidNSInlineData to (ocidBmpImageRep's representationUsingType:ocidFileType |properties|:ocidPropertyDict)
      
      ############################
      #########保存
      ###########################
      ###ページ数連番ゼロサプレス
      set strZeroAdd to ("000" & numCntPageNo) as text
      set strPageNO to text -3 through -1 of strZeroAdd as text
      ###ファイル名に整形して
      set strSaveImageFileName to ("" & strPrefixName & "." & strPageNO & "." & strExtension & "") as text
      ####保存先URL
      set ocidSaveFilePathURL to (ocidSaveFileDirPathURL's URLByAppendingPathComponent:strSaveImageFileName isDirectory:false)
      #####保存
      set boolDone to (ocidNSInlineData's writeToURL:ocidSaveFilePathURL options:(refMe's NSDataWritingAtomic) |error|:(reference))
      
      #############カウントアップ
      set numCntPageNoJs to numCntPageNoJs + 1 as integer
      set numCntPageNo to numCntPageNo + 1 as integer
      ###データ解放
      set ocidNSInlineData to ""
      set ocidPageImageData to ""
      set ocidOsDispatchData to ""
      set ocidBmpImageRep to ""
    end repeat
    ###データ解放
    set ocidReadPdfData to ""
    set ocidPdfPep to ""
  end repeat
  
  
end open

|

[PDF]PDFをイメージファイルに変換する

【スクリプトエディタで開く】


#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
use AppleScript version "2.6"
use framework "Foundation"
use framework "Quartz"
use framework "CoreImage"
use framework "AppKit"
use scripting additions

property refMe : a reference to current application


on run
  
  set aliasIconPass to (POSIX file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/MultipleItemsIcon.icns") as alias
  set strDialogText to "ドロップしても利用できます"
  set strTitleText to "PDFファイルを選んでください"
  set listButton to {"ファイルを選びます", "キャンセル"} as list
  display dialog strDialogText buttons listButton default button 1 cancel button 2 with title strTitleText with icon aliasIconPass giving up after 1 with hidden answer
  
  set aliasDefaultLocation to (path to desktop folder from user domain) as alias
  set listChooseFileUTI to {"com.adobe.pdf"}
  set strPromptText to "ファイルを選んでください" as text
  set strPromptMes to "PDFファイルを選んでください" as text
  set listAliasFilePath to (choose file strPromptMes with prompt strPromptText default location (aliasDefaultLocation) of type listChooseFileUTI with showing package contents, invisibles and multiple selections allowed) as list
  
  -->値をOpenに渡たす
  open listAliasFilePath
end run


on open listAliasFilePath
  
  ##########################
  ####ファイル形式ダイアログ
  ##########################
  set listChooser to {"JPEG", "PNG", "BMP", "TIFF"}
  try
    set listResponse to (choose from list listChooser with title "選んでください" with prompt "書き出し形式" default items (item 2 of listChooser) OK button name "OK" cancel button name "キャンセル" without multiple selections allowed and empty selection allowed)
  on error
    log "エラーしました"
    return "エラーしました"
  end try
  if listResponse is false then
    return "キャンセルしました"
  end if
  set strResponse to (item 1 of listResponse) as text
  ################################
  ###カラープロファイルを読み出しておく ファイルはお好みで
  set strIccFilePath to "/System/Library/ColorSync/Profiles/sRGB Profile.icc"
  set ocidIccFilePathStr to (refMe's NSString's stringWithString:strIccFilePath)
  set ocidIccFilePath to ocidIccFilePathStr's stringByStandardizingPath
  set ocidIccFilePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:ocidIccFilePath isDirectory:false)
  set ocidProfileData to refMe's NSData's alloc()'s initWithContentsOfURL:ocidIccFilePathURL
  
  ##########################
  ####ファイルの数だけ繰り返し
  ##########################
  repeat with itemAliasFilePath in listAliasFilePath
    ####まずはUNIXパスにして
    set strFilePath to (POSIX path of itemAliasFilePath) as text
    set ocidFilePathStr to (refMe's NSString's stringWithString:strFilePath)
    set ocidFilePath to ocidFilePathStr's stringByStandardizingPath
    set ocidFilePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:ocidFilePath)
    ####ファイル名を取得
    set ocidFileName to ocidFilePathURL's lastPathComponent()
    ####ファイル名から拡張子を取っていわゆるベースファイル名を取得
    set ocidPrefixName to ocidFileName's stringByDeletingPathExtension
    ####コンテナディレクトリを取得
    set ocidContainerDirURL to ocidFilePathURL's URLByDeletingLastPathComponent()
    ########################
    ###保存先ディレクトリを作成 
    set strPrefixName to ocidPrefixName as text
    ###ディレクトリ名はお好みで
    set ocidSaveDirName to (strPrefixName & "_images") as text
    ##保存先URL
    set ocidSaveFileDirPathURL to (ocidContainerDirURL's URLByAppendingPathComponent:ocidSaveDirName isDirectory:true)
    ###フォルダ作成
    set appFileManager to refMe's NSFileManager's defaultManager()
    set ocidAttrDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
    (ocidAttrDict's setValue:511 forKey:(refMe's NSFilePosixPermissions))
    set listBoolMakeDir to (appFileManager's createDirectoryAtURL:(ocidSaveFileDirPathURL) withIntermediateDirectories:true attributes:(ocidAttrDict) |error|:(reference))
    #####################
    #### 本処理
    #####################
    ###NSDATAに読み込む
    set ocidReadPdfData to (refMe's NSData's alloc()'s initWithContentsOfURL:ocidFilePathURL)
    ####NSPDFImageRepに変換
    set ocidPdfPep to (refMe's NSPDFImageRep's alloc()'s initWithData:ocidReadPdfData)
    ###ページ数数えて
    set numPageCnt to ocidPdfPep's pageCount() as integer
    ###ページカウントの書き出しファイル用のページ番号
    set numCntPageNo to 1 as integer
    ###ページカウントの初期値JS
    set numCntPageNoJs to numCntPageNo - 1 as integer
    ####################
    #####ページ数だけ繰り返し
    ####################
    repeat numPageCnt times
      ####順番にページデータを読み出し
      (ocidPdfPep's setCurrentPage:numCntPageNoJs)
      ####ページデータをNSIMAGEに格納
      set ocidPageImageData to refMe's NSImage's alloc()'s init()
      (ocidPageImageData's addRepresentation:ocidPdfPep)
      ###中間ファイルとしてのTIFFに変換
      set ocidOsDispatchData to ocidPageImageData's TIFFRepresentation()
      ####出力されるBmpImageRepに格納
      set ocidBmpImageRep to (refMe's NSBitmapImageRep's imageRepWithData:ocidOsDispatchData)
      #############################
      #####変換設定 オプション設定
      #############################
      if strResponse is "JPEG" then
        ###可変レコードに
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        ###各種値をキーでセットしておく
        (ocidPropertyDict's setObject:1 forKey:(refMe's NSImageCompressionFactor))
        set ocidSetColor to refMe's NSColor's whiteColor()
        (ocidPropertyDict's setObject:ocidSetColor forKey:(refMe's NSImageFallbackBackgroundColor))
        (ocidPropertyDict's setObject:ocidProfileData forKey:(refMe's NSImageColorSyncProfileData))
        ####ファイルタイプの指定
        set ocidFileType to refMe's NSBitmapImageFileTypeJPEG
        ###パスで使う拡張子
        set strExtension to "jpg"
        
      else if strResponse is "PNG" then
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        (ocidPropertyDict's setObject:true forKey:(refMe's NSImageInterlaced))
        ####ガンマ値が不要な場合はコメントアウト
        (ocidPropertyDict's setObject:0.45455 forKey:(refMe's NSImageGamma))
        (ocidPropertyDict's setObject:ocidProfileData forKey:(refMe's NSImageColorSyncProfileData))
        set ocidFileType to refMe's NSBitmapImageFileTypePNG
        set strExtension to "png"
        
      else if strResponse is "BMP" then
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        set ocidFileType to refMe's NSBitmapImageFileTypeBMP
        set strExtension to "bmp"
        
      else if strResponse is "TIFF" then
        set ocidPropertyDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
        (ocidPropertyDict's setObject:1 forKey:(refMe's NSImageCompressionFactor))
        (ocidPropertyDict's setObject:(refMe's NSTIFFCompressionNone) forKey:(refMe's NSImageCompressionMethod))
        (ocidPropertyDict's setObject:ocidProfileData forKey:(refMe's NSImageColorSyncProfileData))
        set ocidFileType to refMe's NSBitmapImageFileTypeTIFF
        set strExtension to "tiff"
        
      end if
      ##########変換
      set ocidNSInlineData to (ocidBmpImageRep's representationUsingType:ocidFileType |properties|:ocidPropertyDict)
      
      ############################
      #########保存
      ###########################
      ###ページ数連番ゼロサプレス
      set strZeroAdd to ("000" & numCntPageNo) as text
      set strPageNO to text -3 through -1 of strZeroAdd as text
      ###ファイル名に整形して
      set strSaveImageFileName to ("" & strPrefixName & "." & strPageNO & "." & strExtension & "") as text
      ####保存先URL
      set ocidSaveFilePathURL to (ocidSaveFileDirPathURL's URLByAppendingPathComponent:strSaveImageFileName isDirectory:false)
      #####保存
      set boolDone to (ocidNSInlineData's writeToURL:ocidSaveFilePathURL options:(refMe's NSDataWritingAtomic) |error|:(reference))
      
      #############カウントアップ
      set numCntPageNoJs to numCntPageNoJs + 1 as integer
      set numCntPageNo to numCntPageNo + 1 as integer
      ###データ解放
      set ocidNSInlineData to ""
      set ocidPageImageData to ""
      set ocidOsDispatchData to ""
      set ocidBmpImageRep to ""
    end repeat
    ###データ解放
    set ocidReadPdfData to ""
    set ocidPdfPep to ""
  end repeat
  
  
end open

|

その他のカテゴリー

Acrobat Acrobat Annotation Acrobat Dialog Acrobat Form Acrobat JS Acrobat Open Acrobat Plugin Acrobat python Acrobat Reader Acrobat Sequ Acrobat Stamps Admin Admin Account Admin Apachectl Admin configCode Admin Device Management Admin LaunchServices Admin Locationd Admin loginitem Admin Maintenance Admin Permission Admin Pkg Admin Power Management Admin Printer Admin SetUp Admin SMB Admin System Information Admin Tools Admin Users Admin Volumes Adobe Apple AppleScript AppleScript Guide AppleScript Accessibility AppleScript AppKit AppleScript Applications AppleScript AppStore AppleScript Archive AppleScript Attributes AppleScript Automator AppleScript AVAsset AppleScript AVconvert AppleScript AVFoundation AppleScript AVURLAsset AppleScript BackUp AppleScript Barcode AppleScript Bash AppleScript Basic AppleScript Basic Path AppleScript Bluetooth AppleScript BOX AppleScript Browser AppleScript Calendar AppleScript CD/DVD AppleScript Choose AppleScript Chrome AppleScript CIImage AppleScript CloudStorage AppleScript Color AppleScript com.apple.LaunchServices.OpenWith AppleScript Console AppleScript Contacts AppleScript CotEditor AppleScript CURL AppleScript current application AppleScript Date&Time AppleScript delimiters AppleScript Desktop AppleScript Device AppleScript Disk AppleScript do shell script AppleScript Dock AppleScript DropBox AppleScript eMail AppleScript Encode Decode AppleScript Error AppleScript EXIFData AppleScript ffmpeg AppleScript File AppleScript Finder AppleScript Firefox AppleScript Folder AppleScript Fonts AppleScript GIF AppleScript HTML AppleScript Icon AppleScript Illustrator AppleScript Image Events AppleScript Image2PDF AppleScript ImageOptim Applescript iWork AppleScript Javascript AppleScript Jedit AppleScript Json AppleScript Label AppleScript List AppleScript locationd AppleScript LRC AppleScript LSSharedFileList AppleScript m3u8 AppleScript MakePDF AppleScript Map AppleScript Math AppleScript Microsoft AppleScript Microsoft Edge AppleScript Microsoft Excel AppleScript Mobileconfig AppleScript Mouse AppleScript Movie AppleScript Music AppleScript NetWork AppleScript Notes AppleScript NSArray AppleScript NSBitmapImageRep AppleScript NSBundle AppleScript NSCFBoolean AppleScript NSCharacterSet AppleScript NSColor AppleScript NSColorList AppleScript NSData AppleScript NSDictionary AppleScript NSError AppleScript NSEvent AppleScript NSFileAttributes AppleScript NSFileManager AppleScript NSFont AppleScript NSFontManager AppleScript NSImage AppleScript NSIndex AppleScript NSKeyedArchiver AppleScript NSKeyedUnarchiver AppleScript NSLocale AppleScript NSMutableArray AppleScript NSMutableDictionary AppleScript NSMutableString AppleScript NSNotFound AppleScript NSNumber AppleScript NSOpenPanel AppleScript NSPasteboard AppleScript NSPDFImageRep AppleScript NSpoint AppleScript NSPredicate AppleScript NSRange AppleScript NSRegularExpression AppleScript NSRunningApplication AppleScript NSScreen AppleScript NSSize AppleScript NSString AppleScript NSStringCompareOptions AppleScript NSTask AppleScript NSTimeZone AppleScript NSURL AppleScript NSURL File AppleScript NSURLBookmark AppleScript NSURLComponents AppleScript NSURLResourceKey AppleScript NSUserDefaults AppleScript NSUUID AppleScript NSView AppleScript NSWorkspace AppleScript Numbers AppleScript OAuth AppleScript ObjC AppleScript OneDrive AppleScript Osax AppleScript PDF AppleScript PDFAnnotationWidget AppleScript PDFContext AppleScript PDFDisplayBox AppleScript PDFDocumentPermissions AppleScript PDFKit AppleScript PDFnUP AppleScript PDFOutline AppleScript Photos AppleScript Photoshop AppleScript Plist System Events AppleScript PostScript AppleScript prefPane AppleScript Preview AppleScript Python AppleScript QR AppleScript QR Decode AppleScript QuickLook AppleScript QuickTime AppleScript record AppleScript Regular Expression AppleScript Reminders AppleScript ReName AppleScript Repeat AppleScript RTF AppleScript Safari AppleScript SaveFile AppleScript ScreenCapture AppleScript ScreenSaver AppleScript Script Editor AppleScript Script Menu AppleScript Shortcuts AppleScript Shortcuts Events AppleScript Sort AppleScript Sound AppleScript Spotlight AppleScript SRT AppleScript StandardAdditions AppleScript stringByApplyingTransform AppleScript System Events AppleScript System Settings AppleScript TemporaryItems AppleScript Terminal AppleScript Text AppleScript Text CSV AppleScript Text TSV AppleScript TextEdit AppleScript Translate AppleScript Trash AppleScript Twitter AppleScript UI AppleScript Unit Conversion AppleScript UTType AppleScript valueForKeyPath AppleScript Video AppleScript VisionKit AppleScript Visual Studio Code AppleScript webarchive AppleScript webp AppleScript Wifi AppleScript XML AppleScript XML EPUB AppleScript XML OPML AppleScript XML Plist AppleScript XML RSS AppleScript XML SVG AppleScript XML TTML AppleScript XML webloc AppleScript YouTube AppleScript Zero Suppress Applications Barcode OnLine Tools CityCode Design iPhone List Logs lsappinfo Memo Music perl PlistBuddy pluginkit postalcode ReadMe SF Symbols character id SF Symbols Entity sips Skype Slack sqlite TCC Tools Typography Video Wacom zoom