Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

querying Mac os's "show/hide filename extensions" status


This topic is 1311 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Sorry if it is the wrong thread...

I would like to use "show/hide filename extensions" status in a calculation.

Can FMPro do it? v18. 

Thanks, Asu

Posted
3 hours ago, Asu said:

I would like to use "show/hide filename extensions" status in a calculation.

Not possible in a calculation, but you might be able to get it via the Perfom AppleScript script step.

It's not clear which setting you are referring to, though. Each file has its own extension hidden state. In addition, there is a Show all filename extensions setting in Finder preferences. To get the former, you need to tell the Finder to select some file, then do:

get extension hidden of some_file

 To get the latter, you can use:

tell application "Finder"
	get all name extensions showing of Finder preferences
end tell


Are you sure you really need this? It sounds like you're looking for a solution to a problem which shouldn't exist in the first place...

 

Posted

X: IF "shows filename extensions" is not clicked in Finder Prefs THEN add [characters] to [string] ELSE don't.

There AS worked, thanks. 

 

This topic is 1311 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.