[QuickLook]Folder Preview
FInderのリストヴューっぽい感じで
フォルダをクイックルックするプラグイン
https://apps.apple.com/us/app/folder-preview/id6698876601
HPはこちら
https://anybox.ltd/
ZIPアーカイブの中身も
QuickLookで確認OK、これは便利かも

FInderのリストヴューっぽい感じで
フォルダをクイックルックするプラグイン
https://apps.apple.com/us/app/folder-preview/id6698876601
HPはこちら
https://anybox.ltd/
行番号 | ソース |
---|---|
001 | #!/usr/bin/env osascript |
002 | ----+----1----+----2----+-----3----+----4----+----5----+----6----+----7 |
003 | #com.cocolog-nifty.quicktimer.icefloe |
004 | # 設定変更をユーザーが選択するパターンのサンプル |
005 | ----+----1----+----2----+-----3----+----4----+----5----+----6----+----7 |
006 | |
007 | |
008 | ################## |
009 | #現在の設定値の確認 |
010 | set strCommandText to ("/usr/bin/defaults read com.apple.Finder QLHidePanelOnDeactivate") as text |
011 | log ("\r" & strCommandText & "\r") as text |
012 | set strExecCommand to ("/bin/zsh -c \"" & strCommandText & "\"") as text |
013 | try |
014 | set strResponse to (do shell script strExecCommand) as text |
015 | set boolNotExist to false as boolean |
016 | on error |
017 | log "zshでエラーになりました\r" & strCommandText & "\r" |
018 | set boolNotExist to true as boolean |
019 | end try |
020 | |
021 | ################## |
022 | #戻り値による分岐 |
023 | if boolNotExist is true then |
024 | set strMes to ("現在設定されていません\nFinderがフォアグラウンドでないときにQuick Look ウィンドウを隠す\nTRUE:0 FALSE:0でTRUEを設定します") as text |
025 | set strCommandText to ("/usr/bin/defaults write com.apple.Finder QLHidePanelOnDeactivate -bool true") as text |
026 | else if strResponse is "1" then |
027 | set strMes to ("現在の設定はTRUE:1ですFALSE:0にしますか?") as text |
028 | set strCommandText to ("/usr/bin/defaults write com.apple.Finder QLHidePanelOnDeactivate -bool false") as text |
029 | else if strResponse is "0" then |
030 | set strMes to ("現在の設定はFALSE:0ですTRUE:1にしますか?") as text |
031 | set strCommandText to ("/usr/bin/defaults write com.apple.Finder QLHidePanelOnDeactivate -bool true") as text |
032 | end if |
033 | |
034 | ################## |
035 | #アラート選択 |
036 | try |
037 | #前面に |
038 | set strName to (name of current application) as text |
039 | if strName is "osascript" then |
040 | tell application "Finder" to activate |
041 | else |
042 | tell current application to activate |
043 | end if |
044 | set recordResponse to (display alert strMes buttons {"OK", "キャンセル"} default button "OK" cancel button "キャンセル" as informational giving up after 10) as record |
045 | on error |
046 | log "キャンセルしました。" |
047 | return "キャンセルしました。" |
048 | end try |
049 | if true is equal to (gave up of recordResponse) then |
050 | return "時間切れです。" |
051 | end if |
052 | #アラートの戻り値 |
053 | set strBottonName to (button returned of recordResponse) as text |
054 | |
055 | |
056 | ################## |
057 | #戻り値でコマンドを実行する |
058 | if "OK" is equal to (strBottonName) then |
059 | log ("\r" & strCommandText & "\r") as text |
060 | set strExecCommand to ("/bin/zsh -c \"" & strCommandText & "\"") as text |
061 | try |
062 | set strResponse to (do shell script strExecCommand) as text |
063 | on error |
064 | log "zshでエラーになりました\r" & strCommandText & "\r" |
065 | end try |
066 | end if |
067 | |
068 | |
069 | |
070 | return |
AppleScriptで生成しました |
| 固定リンク
| 固定リンク
| 固定リンク
| 固定リンク
| 固定リンク
| 固定リンク
| 固定リンク
Accessibility Acrobat Acrobat 2020 Acrobat 2024 Acrobat AddOn Acrobat Annotation Acrobat AppleScript Acrobat ARMDC Acrobat AV2 Acrobat BookMark Acrobat Classic Acrobat DC Acrobat Dialog Acrobat Distiller Acrobat Form Acrobat GentechAI Acrobat JS Acrobat JS Word Search Acrobat Maintenance Acrobat Manifest Acrobat Menu Acrobat Merge Acrobat Open Acrobat PDFPage Acrobat Plugin Acrobat Preferences Acrobat Preflight Acrobat Print Acrobat Python Acrobat Reader Acrobat Reader Localized Acrobat Reference Acrobat Registered Products Acrobat SCA Acrobat SCA Updater Acrobat Sequ Acrobat Sign Acrobat Stamps Acrobat URL List Mac Acrobat URL List Windows Acrobat Watermark Acrobat Windows Acrobat Windows Reader Admin Admin Account Admin Apachectl Admin ConfigCode Admin configCode Admin Device Management Admin LaunchServices Admin Locationd Admin loginitem Admin Maintenance Admin Mobileconfig Admin NetWork Admin Permission Admin Pkg Admin Power Management Admin Printer Admin Printer Basic Admin Printer Custompapers Admin SetUp Admin SMB Admin softwareupdate Admin Support Admin System Information Admin TCC Admin Tools Admin Umask Admin Users Admin Volumes Admin XProtect Adobe Adobe AUSST Adobe Bridge Adobe Documents Adobe FDKO Adobe Fonts Adobe Reference Adobe RemoteUpdateManager Adobe Sap Code AppKit Apple AppleScript AppleScript Duplicate AppleScript entire contents AppleScript List AppleScript ObjC AppleScript Osax AppleScript PDF AppleScript Pictures AppleScript record AppleScript Video Applications AppStore Archive Archive Keka Attributes Automator BackUp Barcode Barcode Decode Barcode QR Bash Basic Basic Path Bluetooth BOX Browser Calendar CD/DVD Choose Chrome Chromedriver CIImage CityCode CloudStorage Color Color NSColor Color NSColorList com.apple.LaunchServices.OpenWith Console Contacts CotEditor CURL current application Date&Time delimiters Desktop Desktop Position Device Diff Disk do shell script Dock Dock Launchpad DropBox Droplet eMail Encode % Encode Decode Encode HTML Entity Encode UTF8 Error EXIFData exiftool ffmpeg File File Name Finder Finder Window Firefox Folder FolderAction Font List FontCollections Fonts Fonts Asset_Font Fonts ATS Fonts Emoji Fonts Maintenance Fonts Morisawa Fonts Python Fonts Variable Foxit GIF github Guide HTML Icon Icon Assets.car Illustrator Image Events ImageOptim Input Dictionary iPhone iWork Javascript Jedit Ω Json Label Language Link locationd lsappinfo m3u8 Mail Map Math Media Media AVAsset Media AVconvert Media AVFoundation Media AVURLAsset Media Movie Media Music Memo Messages Microsoft Microsoft Edge Microsoft Excel Microsoft Fonts Microsoft Office Microsoft Office Link Microsoft OneDrive Microsoft Teams Mouse Music Node Notes NSArray NSArray Sort NSAttributedString NSBezierPath NSBitmapImageRep NSBundle NSCFBoolean NSCharacterSet NSData NSDecimalNumber NSDictionary NSError NSEvent NSFileAttributes NSFileManager NSFileManager enumeratorAtURL NSFont NSFontManager NSGraphicsContext NSGraphicsContext Crop NSImage NSIndex NSKeyedArchiver NSKeyedUnarchiver NSLocale NSMetadataItem NSMutableArray NSMutableDictionary NSMutableString NSNotFound NSNumber NSOpenPanel NSPasteboard NSpoint NSPredicate NSRange NSRect NSRegularExpression NSRunningApplication NSScreen NSSet NSSize NSString NSString stringByApplyingTransform NSStringCompareOptions NSTask NSTimeZone NSUbiquitous NSURL NSURL File NSURLBookmark NSURLComponents NSURLResourceKey NSURLSession NSUserDefaults NSUUID NSView NSWorkspace Numbers OAuth PDF PDF Image2PDF PDF MakePDF PDF nUP PDF Pymupdf PDF Pypdf PDFContext PDFDisplayBox PDFImageRep PDFKit PDFKit Annotation PDFKit AnnotationWidget PDFKit DocumentPermissions PDFKit OCR PDFKit Outline PDFKit Start PDFPage PDFPage Rotation PDFView perl Photoshop PlistBuddy pluginkit plutil postalcode PostScript PowerShell prefPane Preview Python Python eyed3 Python pip QuickLook QuickTime ReadMe Regular Expression Reminders ReName Repeat RTF Safari SaveFile ScreenCapture ScreenSaver Script Editor Script Menu SF Symbols character id SF Symbols Entity Shortcuts Shortcuts Events sips Skype Slack Sound Spotlight sqlite StandardAdditions StationSearch Subtitles LRC Subtitles SRT Subtitles VTT Swift swiftDialog System Events System Settings 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 VMware Fusion Wacom Weather webarchive webp Wifi Windows XML XML EPUB XML HTML XML LSSharedFileList XML LSSharedFileList sfl2 XML LSSharedFileList sfl3 XML objectsForXQuery XML OPML XML Plist XML Plist System Events XML RSS XML savedSearch XML SVG XML TTML XML webloc XML xmllint XML XMP YouTube Zero Padding zoom