Acrobat AddOn

[アドオン]JavaScriptデバッガーにバージョンを表示する




ダウンロード - appversionchk.mac.zip



ダウンロード - appversionchk.win.zip




20240912094108_1176x478
20240912111110_744x120
20240912111120_1170x1080
サンプルコード

サンプルソース(参考)
行番号ソース
001// UTF16で保存してください
002//インストール先は
003// /Users/ユーザー名/Library/Application Support/Adobe/Acrobat/DC/JavaScripts
004// com.cocolog-nifty.quicktimer.icefloe
005function doChkVersion() {
006  console.clear();
007  console.show();
008
009  var strVersionText = "Adobe\xAE Acrobat\xAE " + app.viewerVersion + "\n";
010  strVersionText += "Variation: " + app.viewerVariation + "\n";
011  strVersionText += "Type: " + app.viewerType + "\n";
012  strVersionText += "Platform: " + app.platform + "\n";
013  strVersionText += "Language: " + app.language + "\n";
014  strVersionText += "PlugIns: " + app.numPlugIns + "\n";
015  var numCntPr = app.printerNames.length
016  for (var i = 0; i < numCntPr; i++){
017    strVersionText += "Printer: " + app.printerNames[i] + "\n";
018  }
019  console.println(strVersionText);
020};
021
022
023try {
024  app.addToolButton(
025    {
026      cName: "appVersionCheck",
027      cExec: "doChkVersion();",
028      cEnable: "event.rc = true",
029      cMarked: "event.rc = false",
030      cTooltext: "バージョンチェック",
031      nPos: 1,
032      cLabel: "バージョンチェック"
033    }
034  );
035} catch (e) { }
036
AppleScriptで生成しました

|

[アドオン]JavaScriptデバッガーを開く




ダウンロード - appopenconsole.mac.zip



ダウンロード - appmenulist.win.zip




20240912094108_1176x478
20240912094124_1148x388
サンプルコード

サンプルソース(参考)
行番号ソース
001// UTF16で保存してください
002//インストール先は
003// /Users/ユーザー名/Library/Application Support/Adobe/Acrobat/DC/JavaScripts
004// com.cocolog-nifty.quicktimer.icefloe
005var doOpenDebugger = "console.show();";
006var appAddButtonDebugger =
007{
008  cName: "appOpenDebugger",
009  cExec: doOpenDebugger,
010  cEnable: "event.rc = true",
011  cMarked: "event.rc = false",
012  cTooltext: "コンソール(デバッガー)を開く",
013  nPos: -1,
014  cLabel: "JavaScriptデバッガーを開く"
015};
016
017try { app.addToolButton(appAddButtonDebugger); } catch (e) { }
018
AppleScriptで生成しました

|

その他のカテゴリー

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