Fwd: Trim folder names
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é : Objet: Rép : Trim folder names
Date: 15 janvier 2014 14:59:55 UTC+1
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