Re: script works when reading from DVD but not when reading from hard disk
Re: script works when reading from DVD but not when reading from hard disk
- Subject: Re: script works when reading from DVD but not when reading from hard disk
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 7 Oct 2009 01:36:52 +0200
Le 7 oct. 2009 à 00:54, Brian Christmas a écrit :
On 07/10/2009, at 9:34 AM, Brian Christmas wrote:
G'day again
Just in case you're having problems, please note the additions of extra nested brackets, the adding of the word ' file', and the extra 'as text'.
Closer to your example is
set temp to path to desktop tell application "Finder" to set aliasToNewFolder to (make new folder at temp with properties {name:(name of (container of file (((temp) & "Untitled 2.pages") as text)) as text)}) as alias
My own choice would be to use "System Events", not the "Finder" but we are free beeings. In fact not fully free, insomnia strikes again and I'm not free to sleep :-(
Yvan KOENIG (VALLAURIS, France) mercredi 7 octobre 2009 01:36:45
|
_______________________________________________
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