open printing to pdf does not generate a pdf file
Posted: Mon May 25, 2015 2:42 am
I'm having trouble with the "open printing to pdf" statement
I have a 2 card stack.
The card I want to print is named "letter"
on the first card I have a button with the following code:
on mouseUp
put the longFilePath of me into tpath
set the itemDelimiter to slash
delete the last item of tpath
put "/documents" & "/" after tpath
set the defaultfolder to tpath
open printing to pdf "test.pdf"
print card "Letter"
close printing -- send group of cards to printer
end mouseUp
There is no file named "test.pdf" anywhere on my computer or when installed on my iPhone there either.
I am working on a Macbook air OS X version 10.10.3
LC 7.0.5 Build 10034
Xcode Version 6.3.2
I have run it in the iOS simulator in the IDE and saved as standalone for iPhone and for Windows. Nothing works.
What am I doing wrong?
Tom
I have a 2 card stack.
The card I want to print is named "letter"
on the first card I have a button with the following code:
on mouseUp
put the longFilePath of me into tpath
set the itemDelimiter to slash
delete the last item of tpath
put "/documents" & "/" after tpath
set the defaultfolder to tpath
open printing to pdf "test.pdf"
print card "Letter"
close printing -- send group of cards to printer
end mouseUp
There is no file named "test.pdf" anywhere on my computer or when installed on my iPhone there either.
I am working on a Macbook air OS X version 10.10.3
LC 7.0.5 Build 10034
Xcode Version 6.3.2
I have run it in the iOS simulator in the IDE and saved as standalone for iPhone and for Windows. Nothing works.
What am I doing wrong?
Tom