Applescript Query

Joined
Sep 29, 2013
Messages
28
Reaction score
0
Points
1
I understand :
get current view of Finder window 1.
--> list view.
But I do not understand:
get list view options of Finder window 1.
--> list view options of Finder window id 1651.

Ken Ellis
 
Joined
Aug 13, 2011
Messages
200
Reaction score
7
Points
18
Location
West Sussex
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

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
 
OP
K
Joined
Sep 29, 2013
Messages
28
Reaction score
0
Points
1
Thank you Mark. I now understand that the list view options consists of a set of read only properties, which needs to be interrogated . Unlike you the result was not very helpful.

Best wishes
Ken
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top