• 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 for moving files.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Script for moving files. (From: Manuel <email@hidden>)

  • Prev by Date: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
  • Next by Date: Re: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
  • Previous by thread: Re: Script for moving files.
  • Next by thread: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
  • Index(es):
    • Date
    • Thread