• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Still think it's a BUG in Smile 3.6.0 (668)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still think it's a BUG in Smile 3.6.0 (668)


  • Subject: Still think it's a BUG in Smile 3.6.0 (668)
  • From: Robert Poland <email@hidden>
  • Date: Sat, 24 Dec 2011 10:40:22 -0700

Hi,

See script at bottom.

If I run "Check Syntax" I get the following errors;

 -- Unused variables:

show window "untitled 14" selection {980, 982} -- unused var: ht
 --  set ht to newB - newT

show window "untitled 14" selection {906, 908} -- unused var: ht
 --  set ht to newB - newT

Un-commenting "-- set ht to 0" removes errors.

Sure looks like a BUG in Smile to me.


property ht : 0
property newB : 0
property newL : 0
property newR : 0
property newT : 0

set currentLineItem to "Tex-Edit Plus 44 800 1440 0 0" -- tab seperated items
set newL to ""
set newT to ""
set newR to ""
set newB to ""
set wd to ""
set ht to ""

-- parse out data
set AppleScript's text item delimiters to {tab}
-- use temp to evaluate variables, don't overwrite defaults
set temp to text item 2 of currentLineItem
if temp ≠ "" then set newL to temp as integer
set temp to text item 3 of currentLineItem
if temp ≠ "" then set newT to temp as integer
set temp to text item 4 of currentLineItem
if temp ≠ "" then set newR to temp as integer
set temp to text item 5 of currentLineItem
if temp ≠ "" then set newB to temp as integer
set wd to text item 6 of currentLineItem as integer
set ht to text item 7 of currentLineItem as integer

set x to processExcel()
set x to processWord()

on processExcel()
-- set ht to 0
set ht to newB - newT
end processExcel

on processWord()
-- set ht to 0
set ht to newB - newT
end processWord


Robert Poland
2.7 GHz Intel Core I5, 27” iMac
12 GB Ram, OS 10.7.2
Wireless keyboard & trackpad
2.4 GHz Intel Core 2 Duo MBP
4 GB Ram, OS 10.7.2
iPad 2, 32 GB, iOS 5.1
iPod Touch (1st Gen), 8 GB, iOS 3.1.3

 _______________________________________________
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

  • Prev by Date: Re: finder - how do I rename/move this?
  • Next by Date: Editing on Snow Leopard
  • Previous by thread: Re: Folder Actions Scripts
  • Next by thread: Editing on Snow Leopard
  • Index(es):
    • Date
    • Thread