Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Applescript Query
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mark FX" data-source="post: 1639146" data-attributes="member: 211556"><p>The list view options of the Finder window is a list of read only properties.</p><p>for example if you copy and paste the script below into a new Script Editor file window</p><p>it will return the icon size property of the list view options.</p><p></p><p>[CODE]</p><p>tell application "Finder"</p><p> set viewType to get current view of Finder window 1.0</p><p> if viewType = list view then</p><p> set iconSize to get icon size of list view options of Finder window 1.0</p><p> end if</p><p> return iconSize</p><p>end tell</p><p>[/CODE]</p><p></p><p>The above code requires you to be in list view mode of the current Finder window.</p><p></p><p>The list view options of the Finder window is a class, which has properties, so</p><p>when you just ask for the list view options as in your posted code, you will simply</p><p>get a class description.</p><p></p><p>in order to access different properties of the list view options class, you have to</p><p>be specific in asking for one of the listed properties.</p><p></p><p>To see the various classes properties and any usable methods of the Finder or</p><p>any other application, you need to look through the applications scripting</p><p>definition file.</p><p>You access these SDEF files from the Script Editors Window -> Library menu item.</p><p></p><p>Regards Mark</p></blockquote><p></p>
[QUOTE="Mark FX, post: 1639146, member: 211556"] The list view options of the Finder window is a list of read only properties. for example if you copy and paste the script below into a new Script Editor file window it will return the icon size property of the list view options. [CODE] tell application "Finder" set viewType to get current view of Finder window 1.0 if viewType = list view then set iconSize to get icon size of list view options of Finder window 1.0 end if return iconSize end tell [/CODE] The above code requires you to be in list view mode of the current Finder window. The list view options of the Finder window is a class, which has properties, so when you just ask for the list view options as in your posted code, you will simply get a class description. in order to access different properties of the list view options class, you have to be specific in asking for one of the listed properties. To see the various classes properties and any usable methods of the Finder or any other application, you need to look through the applications scripting definition file. You access these SDEF files from the Script Editors Window -> Library menu item. Regards Mark [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Applescript Query
Top