Passing quotes "do shell script" in AppleScript... Again -


i have following line in applescript

set msgdate (current date) string set removalstring "\"rm -f ~/library/launchagents/com.playlister.\"" string     shell script "echo shell script " & removalstring & msgdate & ".plist" & ">> ~/library/playlister/" & msgdate & ".applescript" 

what i'm trying do, yet again, pass string

do shell script "rm -f ~/library/launchagents/com.playlister.whateverthedatestampis.plist" 

with quotes in correct place. i'm moving stuff around quite bit in blind attempt quotes right, , i've gotten it, not quite.

any insight or assistance appreciated!

are trying this?

set msgdate (current date) text set removalstring "rm -f ~/library/launchagents/com.playlister."  shell script "echo shell script \\\"" & removalstring & msgdate & ".plist\\\"" & " >> ~/library/playlister/" & quoted form of msgdate & ".applescript" 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -