Re: Script for moving files.
Re: Script for moving files.
- Subject: Re: Script for moving files.
- From: Axel Luttgens <email@hidden>
- Date: Thu, 20 Jun 2013 23:25:32 +0200
Le 20 juin 2013 à 20:58, Manuel a écrit :
> Hello scripters.
>
> I´m trying a folder action for moving files based in the extension and name, but I can´t.
> If the code looks for just extensions, it works, but when I want also the name, the files don´t move.
>
> This is the code:
>
> [...]
> property videoNombres : {"Hannibal", "Continuum", "Elementary"}
> [...]
> if name extension of archivoDescargado is in videoExtensiones and name of archivoDescargado starts with videoNombres then
> [...]
Hello Manuel,
The problem is very likely related to your usage of the "starts with" operator.
Since its left-hand operand is a string, its right-hand operand is coerced to a string; as a result, assuming a default value for the text item delimiters, it is as if you had written:
... and name of archivoDescargado starts with "HannibalContinuumElementary" ...
HTH,
Axel
_______________________________________________
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