def to_applescript(pyList):
	"""Delimit a list into a string value for AppleScript parsing."""
	final_ls = []
	for ls_item in pyList:
		if isinstance(ls_item, list):
			ls_item = to_applescript(ls_item)
		final_ls.append(ls_item)
	pyStr = "|".join(str(item) for item in final_ls)
	return "{" + pyStr + "}"