Alright so here is my current problem. I have a database in excel that I am trying to use Applescript to manipulate. I have a series of dates in Row 1 and a list of Materials in Column A and what I am trying to do is have it update the Quantity of the Material in the column under the current date in that specific Material’s Row. I really hope that made sense.
The issue I am currently having is that when the script selects cell “A1” which is blank I tell it to move one cell to the right which has a date in it and check to see if it is the current date and if its not it needs to repeat and again move one cell to the right and check that date to see if it matches. If it does then I am having it do something else. But there is my issue, here is what I have for the script to date.
tell application "System Events"
set leftArrow to ASCII character 28
set rightArrow to ASCII character 29
set downArrow to ASCII character 31
set upArrow to ASCII character 30
end tell
set d to day of (current date)
set m to month of (current date)
set y to year of (current date)
set cd to (current date)
tell application "Microsoft Excel"
tell worksheet "Sheet1" of active workbook
select cell "A1"
repeat
tell application "System Events"
keystroke rightArrow
end tell
if current cell <> cd then -- this line is the issue
delay 0.1
else
say "Congrats"
exit repeat
end repeat
end tell
end tell
end
say "Yay! you Finally did it."
Thank you in advance for your help.
-John