Sender: |
|
Date: |
Mon, 13 Jun 2011 18:02:17 +0200 |
MIME-version: |
1.0 |
Reply-To: |
|
Content-type: |
text/plain; charset=ISO-8859-1; format=flowed; delsp=yes |
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-transfer-encoding: |
quoted-printable |
Parts/Attachments: |
|
|
Thanks much!
Emmanuel
On Jun 13, 2011, at 4:50 PM, Christopher Stone wrote:
> On Jun 13, 2011, at 09:06, Emmanuel LEVY wrote:
>> I don't even know how you set a modification date...
> ______________________________________________________________________
>
> Hey Emmanuel,
>
> Mark's script works nicely, but it is also easily done with vanilla
> Applescript:
>
> tell application "Finder"
> try
> set sel to (selection as alias list)'s first item
> set modification date of sel to (current date)
>
> on error errMsg number errNum
> set sep to "=============================="
> set e to sep & return & "Error: " & errMsg & return & sep & return ¬
> & "Error Number: " & errNum & return & sep
> beep
> display dialog e
> end try
> end tell
>
> --
> Best Regards,
> Chris
|
|
|