• 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: script works when reading from DVD but not when reading from hard disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • [SOLVED] Re: script works when reading from DVD but not when reading from hard disk
      • From: Mari Masuda <email@hidden>
References: 
 >script works when reading from DVD but not when reading from hard disk (From: Mari Masuda <email@hidden>)

  • Prev by Date: Re: script works when reading from DVD but not when reading from hard disk
  • Next by Date: Re: script works when reading from DVD but not when reading from hard disk
  • Previous by thread: Re: script works when reading from DVD but not when reading from hard disk
  • Next by thread: [SOLVED] Re: script works when reading from DVD but not when reading from hard disk
  • Index(es):
    • Date
    • Thread