See also Tools (for Media / Photo / Video / …) – /mlabs/lib/tools/ – for more on mediainfo original tool, and other tools.
on run {input, parameters}
display dialog (“Another Service by J&P”) buttons {“Ok”} default button “Ok”
end run
- Open text editor with source…txt – file
- Open Automator
- Editing of source, in Automator,
- Copy from latest source…txt file into <Utilitity>.app automator – app file
- Develop and test
- Once finished
- Copy source code to new source…txt file
- Clean up any comments, debug printouts, … et c from this
- Copy source to corresponding <Utilitity>.workflow Atomator – service file
- (Opt) Close Automator / or file inside Automator
- IF using custom app icon
- Open ###
- Ensure have your own .icns file, with name ‘AutomatorApplet.icns’
- Copy this into and confirm that you DO WANT to replace
- Copy
- C
Gen 1
Gen | Date | App | Svc | Notes |
1 | 2019-08-01 | √ | – | Called medianinfo-processing.app. Full path to media in created <input>.txt – file |
1 | 2019-10-01 | √ | – | Added json formatted file as well, output to <input>.json |
1 | 2019-11-05 | √ | – | Created the MediaInfo by JAS logo |
1 | 2020-08-18 | √ | ### | Change output names to include ‘.mediainfo’ <input>.mediainfo.txt and <input>.mediainfo.json |
1 | 2020-11-20 | √ | – | Creating a logo, MediaInfo-icon.tiff Which is manually copied onto icon field (Finder > Info….) |
1 | 2020-11-24 | √ | Start using mediastats.sh if available | |
1 | 2020-11-24 | √ | Also creating a Service, standalone from the App, just copy and past of AppleScript code. |
|
2 | 2021-01-19 | √ | √ | Work started 2021-01-15, Created custom icon as part of of .app itself |
- Create proper macOS icon
- Image2icon.app is easiest! Free (img2icnsapp.com/, and in macOS App Store, Family Sharing)
- From a ‘MediaInfo-icon.tiff’
- To a ‘MediaInfo-icon.icns’ file
- Image2icon.app is easiest! Free (img2icnsapp.com/, and in macOS App Store, Family Sharing)
- Using in Automator .app – application, general process as found at derflounder 2015/07/19/
- “Right-click on the Automator application
- Click on Show Package Contents
- Navigate to Contents/Resources
- Locate an existing file named AutomatorApplet.icns
- Remove the existing AutomatorApplet.icns file
- Copy the Mac OS icns file generated by iConvert Icons to the Resources folder
J&P: Copied my MediaInfo-icon.icns into folder - Rename the Mac OS icns file to AutomatorApplet.icns
J&P: Yepp, renamed - Fix permissions as needed for the new AutomatorApplet.icns file, to match those that have been set for the Automator application
J&P: checked, no need for any tweaks - Close the Finder window
Once the new AutomatorApplet.icns file is in place, the chosen application icon should appear in dialog windows instead of the generic Automator icons.”
- But, new icon just didn’t start being used on the Automator-created .app. Tried a a few things which did the trick:
- Making a copy
- Compress (e.g. to zip) and Uncompress
- And YES (as expected, wanted) THIS process DO make an app with icon that correctly is “passed across” synchronized computers (e.g. IM2720, MBP17)