Re: Why does 1440 not equal 1440?
Re: Why does 1440 not equal 1440?
- Subject: Re: Why does 1440 not equal 1440?
- From: "koenig.yvan" <email@hidden>
- Date: Thu, 04 Aug 2011 19:40:18 +0200
Le 04/08/2011 à 19:21, Robert Poland a écrit : Hi,
This script does not work.
The file "setBounds_Monitors" contains the line '2560 1440 iMac_27"', three items separated by tabs.
I have tried creating this file with several text editors.
The display dialog shows the correct text but fails to equal.
What subtlety am I missing here?
property theDataFile : POSIX file "Library/Scripts/Universal Scripts/setBounds_Monitors" -- data file global newR, newB
-- get screen size for monitor tell application "Finder" to set {newL, newT, newR, newB} to bounds of window of desktop
If I remember well, this instruction returns floating values. Yours are strings .
Try to coerce the returned values as text.
Yvan KOENIG (VALLAURIS, France) jeudi 4 août 2011 19:39:20
|
_______________________________________________
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