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 00:04:54 +0200
Le 6 oct. 2009 à 23:47, Mari Masuda a écrit : Hi Ed,
Thanks for the suggestion. When I ran your code I received an error message with the same error code (-1700) but slightly different wording in the text part of the message. It seems that this line is failing: set folderName to (name of (container of currentINDDfile) as text) because it gives the error alert and does not print the folderName. The error from the log was display alert "An error has occurred (-1700). Can't make name of container of item 1 of {alias \"mari:Desktop:maritest:indd:hoov-09-04-03 Folder:hoov-09-04-03.indd\"} into type string." {button returned:"OK"}
Mari 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.
Yvan KOENIG (VALLAURIS, France) mercredi 7 octobre 2009 00:04:32
|
_______________________________________________
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