PDA

View Full Version : Applescript - Folder view problem


Hyperfranx
05-07-2003, 04:08 PM
Hello!

I have a problem with an applescript.

I had to a create folder on our main server (LAN network). We?re working on MAC machines but our server is running Windows 2000 (what a shame...).

Via applescript, I can create the folder on the server, I can even open the folder bot when I want to set"the current view to list" I got a messager telling me that it can?t be done.

Here?s the script :

set the current view of window leGros of place to list view

thank you

at_sym
05-07-2003, 04:31 PM
Have you tried something like....

tell application "Finder"
activate
set this_folder to make new Finder window
set the target of this_folder to folder "[the name of the new folder]" of [place]
set the current view of this_folder to list view
end tell

It seems to work on this end.

Hyperfranx
05-08-2003, 09:06 AM
It works!!!

Thank you very much!

:)

Hyperfranx
05-08-2003, 01:41 PM
OOPS...

It doesn’t work on OS 9.2....

tell application "Finder"
activate
set this_folder to make new Finder window
set the target of this_folder to folder "[the name of the new folder]" of [place]
set the current view of this_folder to list view
end tell


Anyone has an idea...?


Thanks