Re: (resend)
Re: (resend)
- Subject: Re: (resend)
- From: Alex Zavatone <email@hidden>
- Date: Sat, 27 Mar 2010 02:38:07 -0500
On Mar 27, 2010, at 2:30 AM, Skeeve wrote:
> Alex Zavatone schrieb:
>
>> ls -1dt */
>> But trying that in Applescript, it doesn't work as expected, set myShellString to "ls -1dt " & (quoted form of POSIX path of myFolder) & "*/"
>> set myShellResults to do shell script myShellString
>> This gives this output:
>> /Optimized PNG/Button bar in layers/
>> /Optimized PNG/prog info no thumbs/
>> ...
>> While what is desired is:
>> Button bar in layers/
>> prog info no thumbs/
>> ...
> Do you ever think about what you're doing? If the output is different, the reason is, that you are doing different thnigs. In Terminal you do:
>
> cd 'Optimized PNG'
>
> ls -1dt *
>
> And that gives you what you want.
>
> I don't understand why the heck you don't do the same in Applescript!
Well, I did already have two working solutions and I was trying to take the time to test out Mark's proposed solution and get back to him if it worked and if not why.
Fair enough?
_______________________________________________
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