• 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
Error in script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in script


  • Subject: Error in script
  • From: David Bradley <email@hidden>
  • Date: Thu, 25 May 2006 10:11:39 +0100

Applescript Error:

MacSQL3 got an error: ct_send failed

Am I very new to applescript so could anybody give me the reason why I'm getting this error. 

Here's my code

set QueryText to "SELECT catPage FROM Products_T ORDER BY catPage DESC;"
tell front document of application "MacSQL3"
set rsPages to do query QueryText results as none
set theRow to row 1 of rsPages
set TotalPages to values of theRow
end tell

repeat with PageNo from 1 to TotalPages
set QueryText to "SELECT * FROM Products_T WHERE catPage = " & PageNo
tell front document of application "MacSQL3"
set rsProducts to do query QueryText results as none (Error on this line)
set rowNum to 1
try
repeat
set theRow to row rowNum of rsProducts
set RowValues to values of theRow
set RowItems to every text item of RowValues


set ProductID to get item 1 of RowItems
set ProductCode to get item 3 of RowItems
set PageNo to get item 4 of RowItems
set ProductTitle to get item 7 of RowItems
set ProductPrice to get item 14 of RowItems


tell application "QuarkXPress"
activate
tell document 1
tell page PageNo
make new text cell at beginning of page PageNo
tell text cell 1
set text 1 to ProductTitle
end tell
end tell
end tell
end tell


set rowNum to rowNum + 1
end repeat
end try
delete rsProducts
end tell
end repeat



David Bradley
Senior Web Programmer
Globe Media
Eastwood Works
Fitzwilliam Road
Rotherham
S65 1JU

Tel: 01709 364721
Fax: 01709 515225
email@hidden
www.globe-media.com




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Error in script
      • From: Björn Lundin <email@hidden>
  • Prev by Date: Re: do shell script speed (URL Access Redux)
  • Next by Date: Re: Error in script
  • Previous by thread: Re: terminal does not react
  • Next by thread: Re: Error in script
  • Index(es):
    • Date
    • Thread