Re: Am I blind, or?
Re: Am I blind, or?
- Subject: Re: Am I blind, or?
- From: Deivy Petrescu <email@hidden>
- Date: Wed, 30 Jul 2014 14:08:37 -0400
On Jul 30, 2014, at 13:40 , Robert Poland <email@hidden> wrote:
> Hi,
>
> The following script gives the display;
>
> Wednesday, July 30, 2014 at 7:02:09 AM
> Wednesday, July 30, 2014 at 7:02:09 AM
> false
>
> They look the same to me, What am I missing?
You are not missing anything, you are adding “as string” at the end of the first tell.
remove it and it should give you the expected answer.
>
>
> set ThePicture to choose file
> tell application "System Events" to set modDate to modification date of ThePicture as string
>
> tell application "System Events"
> set backGroundPath to (picture of current desktop)
> set backGroundDate to modification date of file backGroundPath
> end tell
>
> display dialog modDate & return & backGroundDate & return & (modDate = backGroundDate)
>
> TIA,
>
> Robert Poland
> iMac, Late 2013, 14,2
> 3.2 GHz Intel Core I5, 27”
> 16 GB Ram, 1TB Fusion HD
> OS X 10.9.4 (13C64)
>
> _______________________________________________
> 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
Deivy Petrescu
email@hidden
_______________________________________________
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