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: Shane Stanley <email@hidden>
- Date: Wed, 07 Oct 2009 09:00:05 +1000
- Thread-topic: script works when reading from DVD but not when reading from hard disk
On 7/10/09 7:16 AM, "Mari Masuda" <email@hidden> wrote:
> set aliasToNewFolder to (make new folder at outputFolder with properties
> {name:(name of (container of currentINDDfile) as text)}) as alias
You'd be better off not trying to leave everything to the Finder. Get the
name you want like this:
set inddPath to currentINDDfile as text
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
set inddFolderName to text item -2 of inddPath
set AppleScript's text item delimiters to oldDelims
tell app "Finder"
set aliasToNewFolder to (make new folder at outputFolder with properties
{name: inddFolderName })
...
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
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