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: "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