• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adjusting properties of container window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adjusting properties of container window


  • Subject: Re: Adjusting properties of container window
  • From: "Michiel (werk)" <email@hidden>
  • Date: Tue, 23 Jul 2002 16:21:14 +0200

Roger,

This works in OS 9 (when I change current view to view )
tell application "Finder"
set view of container window of folder "test" to name
set bounds of container window of folder "test" to {20, 100, 200, 300}
set position of container window of folder "test" to {100, 100}
end tell


But this gives an error -----({view:name, bounds.....etc.......,100}} cant
be ?? to properties of container window of folder "test".---- (The ?? are
displayed in dutch and I don't know the English word for it)
tell application "Finder"
set properties of container window of folder "test" to {view:name,
bounds:{20, 100, 200, 300}, position:{100, 100}}
end tell

???
Michiel


Roger wrote:
Hi Michiel,

Shouldn't you just include of folder "test" in your lines?

set properties of container window of folder "test" to {view:name}

I couldn't check in OS 9 but in OS X, this is equivalent:

tell application "Finder"
set current view of container window of folder "test" to icon view
set bounds of container window of folder "test" to {20, 100, 200, 300}
set position of container window of folder "test" to {100, 100}
end tell

tell application "Finder"
set properties of container window of folder "test" to {current
view:icon view, bounds:{20, 100, 200, 300}, position:{100, 100}}
End

Hope this helps,

Groeten :-)

Roger
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Adjusting properties of container window (From: Roger_Jolly <email@hidden>)

  • Prev by Date: Need script editor...??
  • Next by Date: FileMaker Pro Help
  • Previous by thread: Re: Adjusting properties of container window
  • Next by thread: Re: Adjusting properties of container window
  • Index(es):
    • Date
    • Thread