Search found 2 matches

by nfrasser
Fri Apr 07, 2017 3:11 pm
Forum: Photoshop Scripting Bugs and Anomalies
Topic: Logical && and || operator precedence is broken
Replies: 0
Views: 5439

Logical && and || operator precedence is broken

Not a big deal since you can always use parens, but just a heads up for people experiencing issues with this. In Boolean algebra, the logical AND operator has higher order-of-operations precedence than logical OR. Therefore, the following two expressions should be equivalent: (true && true) || (true...
by nfrasser
Mon Jan 23, 2017 4:19 pm
Forum: Help Me
Topic: Get selected workspace in Photoshop
Replies: 3
Views: 3785

Get selected workspace in Photoshop

I'm looking for a script to get the currently-selected workspace from Photoshop. If possible, I'd also like to get a list of available workspaces. This is for a plugin I'm building that can cycle through workspaces based on user input. I already have the script to select a specific workspace by name...