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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -