whitespace - Insert space character in AppleScript filename -
i'm using date property in applescript define filename current year in it, should "[yyyy] ideaz.txt". however, breaks whenever insert space. works: property text_file : "~/dropbox/notes/" & year of this_date & "ideaz.txt"
. yields "2015ideaz.txt". however, not: property text_file : "/users/nathanlucy/dropbox/notes/" & year of this_date & space & "ideaz.txt"
. yields file "2015" (no extension).
what missing here? how should define property text_file
differently can include space character?
two ideas:
1) explicitly set year text:
(this_date's year text)
2) express concatenation own variable:
set year_file_name (this_date's year text) & space & "ideaz.txt"
then, use variable in property definition.
Comments
Post a Comment