Need Palm Script for changing "unscheduled" to a particular date

I am trying to find a script that will change all tasks in the Palm desktop software who’s due dates are set to “unscheduled” to a particular date.

I found a similar script below that changes the due date by one day as a starting point. Anyone know how to modify it to do what I need above?

tell application “Palm Desktop”
set Dagar to ((text returned of (display dialog “Move how many days?” default answer “7”)) as number) * days

set overdueTasks to to dos whose completed is false and due date is less than ((current date) - 1 * days)
repeat with eachTask in overdueTasks
set taskDate to due date of eachTask
set due date of eachTask to (taskDate + Dagar)
end repeat
end tell

Model: imac
AppleScript: 1.10.7
Browser: Safari 525.18
Operating System: Mac OS X (10.4)

This should give you a start towards modifying the script you have…

Peter B.



-- set future_date to date string of date "7/4/08" -- compiles to:

set future_date to date string of date "Friday, July 4, 2008 12:00:00 AM"

-- and returns:

--> "Friday, July 4, 2008"

Hi rgibbons,

Oh, how I loved the Palm Desktop software! Maybe the following code is already sufficient for you? It will set the due date of unscheduled to dos to the current date (today):


set todaydate to current date

tell application "Palm Desktop"
	set overdueTasks to to dos whose due date is missing value
	repeat with eachTask in overdueTasks
		set due date of eachTask to todaydate
	end repeat
end tell

Hey thanks. That worked like a charm.

I really appreciate the help.

Another question, is it possible to write a script that will arrange my tasks to that they appear in alphabetical order on my on Treo?