Releases: 9yz/bridge-scripts
Releases · 9yz/bridge-scripts
v1.2.1
Bugfix update for Text Substitutions.
Changelog
Text Substitutions
Bugfixes:
fToTitleCasenow makes the whole string lowercase before proceeding.
Installation
- Download the script of your choice
- Go to Preferences and select the "Startup Scripts" tab.
- Click "Reveal Scripts in Explorer"
- Place the script file in the folder that opens
- Restart Bridge
- When prompted upon restarting, choose to enable the script.
- If the script is not enabled, go to Preferences > Startup Scripts and enable the script, then restart Bridge
v1.2.0
Medium-sized update for Text Substitutions with new functional & builtin substitutions, as well as QoL updates for editing substitution files.
Changelog
Text Substitutions
Major Changes:
- Added new fuctional substitutions:
fLength,fLenfGetIndex,fIndex,fIndexOffGetLastIndex.fLastIndex,fLastIndexOffFindReplace,fReplacefToUpperCase,fToUpperfToLowerCase,fToLowerfToTitleCase,fToTitlefAnyEquals,fAnyEq
- Added new builtin substitutions:
mDescription,mDesctDOW,tDayOfWeek(aliases fortDayP)
- Changes to already-loaded custom substitution files are now detected and automatically reloaded when the script is run - no more need to open the settings and click the reload button!
- Added support for multi-line substitution definitions - in a custom substitution file, ending a substitution definition with a backslash (
\) will ignore the following newline and continue reading the substitution definition on the next line.- Leading tabs on the following line will be ignored.
- If the following line is commented out or only contains tabs, it will be ignored and the next line will be used.
- New substitution file - ts_usefulSubstitutions.txt containing some useful custom substitutions for advanced work (for detecting plurals and leading vowels)
Minor Changes
- Update the Photo Mechanic Variables custom substitutions file with the new substitutions.
- Cosmetic changes to the settings panel
Installation
- Download the script of your choice
- Go to Preferences and select the "Startup Scripts" tab.
- Click "Reveal Scripts in Explorer"
- Place the script file in the folder that opens
- Restart Bridge
- When prompted upon restarting, choose to enable the script.
- If the script is not enabled, go to Preferences > Startup Scripts and enable the script, then restart Bridge
v1.1.0
Large update for Text Substitutions introducing Functional Substitutions as well as multiple QoL updates.
Changelog
Text Substitutions
Major Changes:
- Added functional substitutions - these substitutions take parameters, calculate, and return a value. They are used the same way as normal substitutions; arguments are delimited with a semicolon.
fadd,f+fsub,f-fmul,f*fdiv,f/fmod,f%ffloorfceilfroundfprefix,fpfxfsuffix,fsfxfsubstring,fsubstrfequals,feq,f=fnotequals,fneq,f!=fgreaterthan,fgt,f>flessthan,flt,f<fgreaterequal,fgeq,f>=,f=>flessequal,fleq,f<=,f=<fOr,f||fand,f&&fnot,f!fbranch,fbchfsubstexists,fsubexists,fexists,fsexfsafeexecute,fsafe
- All free-text fields in Bridge's IPTC Core metadata section can now be checked for substitutions.
- Added selector for what fields you want to be checked.
- The file name can now be checked for substitutions
- Added more builtin substitutions:
mFiletype,mExtension- returns the current file's extensionmRegion- aliased tomState(empty substitution) - returns an empty stringmSourcemCaptionWriter,mDescWritermCopyrightNotice,mCopyrightmRightsUsageTerms,mUsageTermsmJobIdentifier,mJobIdent,mJobmInstructionsmCreatormCreatorJobmCreatorAddressmCreatorCitymCreatorState,mCreatorRegion,mCreatorProvincemCreatorCountrymCreatorPostalCode,mCreatorZipmCreatorPhonemCreatorEmailmCreatorWebsite
- New substitution file - ts_folderAssignments.txt - for automatically populating info based on the folder a file is in.
- New substitution file - ts_hotCodes.txt - replicates PhotoMechanic's Hot Codes feature.
Minor Changes
- Updated the Photo Mechanic Variables custom substitutions file with the new substitutions.
- Typo in ts_customSubs.txt
- Accurized error messages
Installation
- Go to Preferences and select the "Startup Scripts" tab.
- Click "Reveal Scripts in Explorer"
- Place the script file in the folder that opens
- Restart Bridge
- When prompted upon restarting, choose to enable the script.
- If the script is not enabled, go to Preferences > Startup Scripts and enable the script, then restart Bridge
v1.0.1
Bugfixes related to versioning.
Changelog
Text Substitutions
- Reworked way versions are stored internally for better handling of new preferences
- Fixed bug with prefs loading that would prevent the script from loading for new users.
Installation
- Go to Preferences and select the "Startup Scripts" tab.
- Click "Reveal Scripts in Explorer"
- Place the script file in the folder that opens
- Restart Bridge
- When prompted upon restarting, choose to enable the script.
- If the script is not enabled, go to Preferences > Startup Scripts and enable the script, then restart Bridge
v1.0.0
The first official release of Bridge Scripts!
Changelog
Scratch Pad
New script! Provides a simple, dockable textbox window for taking notes. Its contents are not saved on program close.
Copy Metadata
- Added script label to error messages
- Added check for files that don't support metadata
Text Substitutions
Massive overhaul!
- Custom substitutions are now defined in a TSV format similar to photomechanic. See ts_customSubs.txt for info.
- Removed old custom substitution input file format.
- Added many new built-in substitutions for camera info and other stuff that was missing.
- Added support for enumerated substitutions (multiple replacements for a single target)
- Added a preferences pane with options for changing delimiters and whether to use the IPTC or EXIF date when getting the time. Also preferences for new features, version and script info, and stats on latest operation.
- Added progress bar when processing over 20 files.
- Substitutions are now checked recursively, meaning that they can be nested to any depth and evaluated inside-out.
- Added substitutions/ts_photoMechanicVariables.txt - a file that aliases Photo Mechanic variable names to the builtin substitutions. (#3)
- Rewrote the way substitutions are stored, making lookup multiple orders of magnitude faster, especially with large custom substitution lists - the operation is now O(1), meaning that looking up a substitution will take the same amount of time regardless of how large the list is. (#1)
- More detailed error messages
- Added checking for cyclical (infinite) recursion
Installation
- Go to Preferences and select the "Startup Scripts" tab.
- Click "Reveal Scripts in Explorer"
- Place the script file in the folder that opens
- Restart Bridge
- When prompted upon restarting, choose to enable the script.
- If the script is not enabled, go to Preferences > Startup Scripts and enable the script, then restart Bridge