• 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: "Stockly, Ed" <email@hidden>
  • Date: Tue, 06 Oct 2009 15:09:14 -0700
  • Thread-topic: script works when reading from DVD but not when reading from hard disk

Title: Re: script works when reading from DVD but not when reading from hard disk
Try this repeat loop:

repeat
with currentINDDfile in listOfINDDfiles
       log currentINDDfile
       tell application "Finder"
            
set
folderName to (name of (container of currentINDDfile) as text)
            
log folderName
           log "MARI"
            
set
aliasToNewFolder to (make new folder at outputFolder with properties {name:folderName}) as alias
           log "MARI2"
            
set
aliasToLinksFolder to (make new folder at aliasToNewFolder with properties {name:"Links"}) as alias
           log "MARI3"
        
end tell
       
convertINDDtoTaggedText(currentINDDfile, aliasToNewFolder)
        
copyLinksFolders(currentINDDfile, aliasToLinksFolder)
    
end repeat


>>>Given the color setting of the pasted instruction, it seems that container is treated as a variable not as an operand.

>>>My guess is that in your loop you aren't "speaking" to the Finder or to System Events and that may explain the described behavior.

Nice catch, now the mystery isn’t why it wasn’t working on a hard drive, but why it ever worked on a dvd!

ES
 _______________________________________________
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

References: 
 >Re: script works when reading from DVD but not when reading from hard disk (From: Yvan KOENIG <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: Re: script works when reading from DVD but not when reading from hard disk
  • Index(es):
    • Date
    • Thread