Brian Dunning's FileMaker Custom Functions

AS_Finder_set_Label ( thePath ; Label_Index )

Change Label of Files in Finder (OS X only - perform AppleScript)

  Average rating: 4.2 (18 votes) Log in to vote

Thomas Siebert   Thomas Siebert
http://www.t-seabird.de

Share on Facebook Share on Twitter

  Sample input:
Perform AppleScript [ AS_Finder_set_Label ( Get ( DesktopPath ) & "myFile.zip" ; 1 ) ]
  Sample output:
changing Label of myFile.zip to 1

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Change Label of Files in Finder

thePath = common FileMaker-Style Path
Label_Index = 0-8 (0=OFF)

you shall use a standard POSIX path or a common FileMaker paths like:
"filemac:" & Get ( DesktopPath ) & "file.csv"

The script removes prefixes like "filemac:" or the name of the start volume like "/Macintosh HD/" automatically.

Use the ScriptStep "Perform AppleScript" using the option "Calculated AppleScript"
You also shall use "Perform AppleScript" directly from a button.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.