make new folder ?
make new folder ?
- Subject: make new folder ?
- From: KOENIG Yvan <email@hidden>
- Date: Tue, 15 Jan 2008 18:33:18 +0100
Hello
It seems that I missed something.
If I code:
set p2d to path to desktop
tell application "Finder"
make new folder at p2d with properties {name:"newFolder"}
end tell
it works flawlessly.
If I code:
set p2d to path to desktop
tell application "System Events"
make new folder at p2d with properties {name:"newFolder"}
end tell
I get
"Erreur dans System Events : NSArgumentsWrongScriptError"
If I code:
tell application "System Events"
make new folder at (get desktop folder) with properties
{name:"newFolder"}
end tell
as well as
tell application "System Events"
make new folder at desktop folder with properties {name:"newFolder"}
end tell
I get
"Erreur dans System Events : NSContainerSpecifierError"
I really don't understand what I am doing wrongly.
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden