if the number of items in line x of card field id 2 <> 2
then
beep
answer "Line " & x && "must have 2 numbers and 1 comma."
exit mouseUp
end if
end repeat
put name into card field id 1 of card id 10033
put dateA into card field id 2 of card id 10033
if sunX < sun then
put (sun - (item 1 of line 1 of card field id 2 + ((item 2 of line 1 of card field id 2)/60)) )into sun
else put (sun + (item 1 of line 1 of card field id 2 + ((item 2 of line 1 of card field id 2)/60)) )into sun
if moonX < moon then
put (moon - (item 1 of line 2 of card field id 2 + ((item 2 of line 2 of card field id 2)/60)) )into moon
else put (moon + (item 1 of line 2 of card field id 2 + ((item 2 of line 2 of card field id 2)/60)) )into moon
if mercuryX < mercury then
put (mercury - (item 1 of line 3 of card field id 2 + ((item 2 of line 3 of card field id 2)/60)) )into mercury
else put (mercury + (item 1 of line 3 of card field id 2 + ((item 2 of line 3 of card field id 2)/60)) )into mercury
if venusX < venus then
put (venus - (item 1 of line 4 of card field id 2 + ((item 2 of line 4 of card field id 2)/60)) )into venus
else put (venus + (item 1 of line 4 of card field id 2 + ((item 2 of line 4 of card field id 2)/60)) )into venus
if marsX < mars then
put (mars - (item 1 of line 5 of card field id 2 + ((item 2 of line 5 of card field id 2)/60)) )into mars
else put (mars + (item 1 of line 5 of card field id 2 + ((item 2 of line 5 of card field id 2)/60)) )into mars
if jupiterX < jupiter then
put (jupiter - (item 1 of line 6 of card field id 2 + ((item 2 of line 6 of card field id 2)/60)) )into jupiter
else put (jupiter + (item 1 of line 6 of card field id 2 + ((item 2 of line 6 of card field id 2)/60)) )into jupiter
if saturnX < saturn then
put (saturn - (item 1 of line 7 of card field id 2 + ((item 2 of line 7 of card field id 2)/60)) )into saturn
else put (saturn + (item 1 of line 7 of card field id 2 + ((item 2 of line 7 of card field id 2)/60)) )into saturn
if uranusX < uranus then
put (uranus - (item 1 of line 8 of card field id 2 + ((item 2 of line 8 of card field id 2)/60)) )into uranus
else put (uranus + (item 1 of line 8 of card field id 2 + ((item 2 of line 8 of card field id 2)/60)) )into uranus
if neptuneX < neptune then
put (neptune - (item 1 of line 9 of card field id 2 + ((item 2 of line 9 of card field id 2)/60)) )into neptune
else put (neptune + (item 1 of line 9 of card field id 2 + ((item 2 of line 9 of card field id 2)/60)) )into neptune
if plutoX < pluto then
put (pluto - (item 1 of line 10 of card field id 2 + ((item 2 of line 10 of card field id 2)/60)) )into pluto
else put (pluto + (item 1 of line 10 of card field id 2 + ((item 2 of line 10 of card field id 2)/60)) )into pluto
if sun < 0 then add 360 to sun
if moon < 0 then add 360 to moon
if mercury < 0 then add 360 to mercury
if venus < 0 then add 360 to venus
if mars < 0 then add 360 to mars
if jupiter < 0 then add 360 to jupiter
if saturn < 0 then add 360 to saturn
if uranus < 0 then add 360 to uranus
if neptune < 0 then add 360 to neptune
if pluto < 0 then add 360 to pluto
repeat with x = 1 to 12
if ascendA = item 1 of line x of card field id 4 then
put (item 2 of line x of card field id 4) + ascendB + (ascendC/60) into ascendant
exit repeat
end if
end repeat
if sun >= ascendant then put the value of (sun - ascendant) into sunhouse
else put the value of (sun + 360 - ascendant) into sunhouse
put (trunc(sunhouse/30) + 1) into sunhouse
repeat with x = 1 to 12
if sun >= item 2 of line x of card field id 4 and sun < (30 + item 2 of line x of card field id 4) then
put sun - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & sunhouse & ")" into line 1 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if moon >= ascendant then put (moon - ascendant) into moonhouse
else put (moon + 360 - ascendant) into moonhouse
put (trunc(moonhouse/30) + 1) into moonhouse
repeat with x = 1 to 12
if moon >= item 2 of line x of card field id 4 and moon < (30 + item 2 of line x of card field id 4) then
put moon - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & moonhouse & ")" into line 2 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if mercury >= ascendant then put (mercury - ascendant) into mercuryhouse
else put (mercury + 360 - ascendant) into mercuryhouse
put trunc(mercuryhouse/30) + 1 into mercuryhouse
repeat with x = 1 to 12
if mercury >= item 2 of line x of card field id 4 and mercury < (30 + item 2 of line x of card field id 4) then
put mercury - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & mercuryhouse & ")" into line 3 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if venus >= ascendant then put (venus - ascendant) into venushouse
else put (venus + 360 - ascendant) into venushouse
put trunc(venushouse/30) + 1 into venushouse
repeat with x = 1 to 12
if venus >= item 2 of line x of card field id 4 and venus < (30 + item 2 of line x of card field id 4) then
put venus - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & venushouse & ")" into line 4 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if mars >= ascendant then put (mars - ascendant) into marshouse
else put (mars + 360 - ascendant) into marshouse
put trunc(marshouse/30) + 1 into marshouse
repeat with x = 1 to 12
if mars >= item 2 of line x of card field id 4 and mars < (30 + item 2 of line x of card field id 4) then
put mars - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & marshouse & ")" into line 5 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if jupiter >= ascendant then put (jupiter - ascendant) into jupiterhouse
else put (jupiter + 360 - ascendant) into jupiterhouse
put trunc(jupiterhouse/30) + 1 into jupiterhouse
repeat with x = 1 to 12
if jupiter >= item 2 of line x of card field id 4 and jupiter < (30 + item 2 of line x of card field id 4) then
put jupiter - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & jupiterhouse & ")" into line 6 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if saturn >= ascendant then put (saturn - ascendant) into saturnhouse
else put (saturn + 360 - ascendant) into saturnhouse
put trunc(saturnhouse/30) + 1 into saturnhouse
repeat with x = 1 to 12
if saturn >= item 2 of line x of card field id 4 and saturn < (30 + item 2 of line x of card field id 4) then
put saturn - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & saturnhouse & ")" into line 7 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if uranus >= ascendant then put (uranus - ascendant) into uranushouse
else put (uranus + 360 - ascendant) into uranushouse
put trunc(uranushouse/30) + 1 into uranushouse
repeat with x = 1 to 12
if uranus >= item 2 of line x of card field id 4 and uranus < (30 + item 2 of line x of card field id 4) then
put uranus - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & uranushouse & ")" into line 8 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if neptune >= ascendant then put (neptune - ascendant) into neptunehouse
else put (neptune + 360 - ascendant) into neptunehouse
put trunc(neptunehouse/30) + 1 into neptunehouse
repeat with x = 1 to 12
if neptune >= item 2 of line x of card field id 4 and neptune < (30 + item 2 of line x of card field id 4) then
put neptune - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& (the value of 60 * z) mod 60 & "' (House " & neptunehouse & ")" into line 9 of card field id 4 of card id 10033
exit repeat
end if
end repeat
if pluto >= ascendant then put (pluto - ascendant) into plutohouse
else put (pluto + 360 - ascendant) into plutohouse
put trunc(plutohouse/30) + 1 into plutohouse
repeat with x = 1 to 12
if pluto >= item 2 of line x of card field id 4 and pluto < (30 + item 2 of line x of card field id 4) then
put pluto - item 2 of line x of card field id 4 into z
put item 1 of line x of card field id 4 && the value of (60 * z) div 60 & "°"&& the value of (60 * z) mod 60 & "' (House " & plutohouse & ")" into line 10 of card field id 4 of card id 10033
exit repeat
end if
end repeat
put ascendA && ascendB &"°" && ascendC &"'" into line 11 of card field id 4 of card id 10033
put midA && midB & "°" into line 12 of card field id 4 of card id 10033