file.setIconPos

Syntax file.setIconPos (path, h, v)

Params path is the path to the file or folder the position of whose icon you wish to position.

h is a number that defines the horizontal position, in pixels, where you wish to position the icon of the file in path.

v is a number that defines the vertical position, in pixels, where you wish to position the icon of the file in path.

Action Sets the horizontal and vertical position of the file's icon within it's window or in the desktop (if that's where it is).

Returns True

Examples file.setIconPos ("System:", 10, 10)

   » true

file.setIconPos ("Boston:tmp:", 200, 300)

   » true

Notes This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

To see the changed position of an icon, you must view the window by icon in the Finder. You must also close and re-open the window in which the icon appears.

See Also file.getIconPos

Discuss