objective c - How to send a Cocoa Lumberjack log file in email from within an OSX application -


i have been trying send cocoa lumberjack log file through email within mac osx application, using apple script. possible this?

i have problem being able use applescript attachment out of correct folder, able create , send message fine without attachment.

i noticed there entitlements accessing users downloads, pictures, movies, music folder aren't convenient store log files in.

can latest log in objective-c, temporarily write accessible location (e.g. downloads) , attach email there via applescript?

nsarray *logfilepathsarray=[[myfilelogger logfilemanager] sortedlogfilepaths]; nsstring *mylogfilepath=[logfilepathsarray firstobject]; // ... copy downloads folder url 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -