• 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
Fwd: Trim folder names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Trim folder names


  • Subject: Fwd: Trim folder names
  • From: "koenig.yvan" <email@hidden>
  • Date: Wed, 15 Jan 2014 15:17:42 +0100



Début du message réexpédié :

De: Christopher Stone <email@hidden>
Objet: Rép : Trim folder names
Date: 15 janvier 2014 14:59:55 UTC+1
À: Applescript Users List <email@hidden>

On Jan 15, 2014, at 07:01, 2551 <email@hidden> wrote:
The following Apple-supplied Applescript used to work prior to Mavericks, but does not do so in 10.9. 
______________________________________________________________________

Hey Phil,

Original:

copy the result as list to {the text_to_trim, the button_pressed}

The fix:

copy the result as list to {button_pressed, text_to_trim}

The list in this line now corrected was backwards.

--
Best Regards,
Chris

Hello

I was ready to post the same answer but I am puzzled because I was unaware of a possible change in the order of the two values — or maybe I forgot it.
On my side, I always took care of the good old rule : never assume that record's values are stored in a given order.

So I code the clean way :
set maybe to display dialog "azerty" default answer "qwerty"
set button_pressed to button returned of maybe
set text_to_trim to text returned of maybe

Yvan KOENIG (VALLAURIS, France) mercredi 15 janvier 2014 15:11:42



 _______________________________________________
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

  • Follow-Ups:
    • Re: Trim folder names
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Trim folder names (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Trim folder names
  • Next by Date: Re: Trim folder names
  • Previous by thread: Re: Trim folder names
  • Next by thread: Re: Trim folder names
  • Index(es):
    • Date
    • Thread