Jump to content

Carlos-Sz

Member
  • Posts

    911
  • Joined

  • Last visited

  • Days Won

    69

Posts posted by Carlos-Sz

  1. Thank you David.

     

    I’m still learning about AppleScript and Shell/Bash and things like these.

     

    I think it is working:

     

    http://d.pr/f/5Jp7

     

    Basically it is a New Text File with clipboard content created in the current Finder folder:

     

    1) you can use a hotkey to create a new text file, or

     

    2) you can use Alfred (key “newf”) to write the filename followed automatically by date and time or press CTRL key to use only the filename

     

    Right now the workflow does not check anything e.g. if a file already exists...

     

    PS: I studied some workflows in this forum and applescript samples from the web in order to compile this workflow.

  2. I’d like to be able to use {query} in an AppleScript but as far as I could understand it is not possible because AppleScript can’t be used in Script Filter.

     

    So I would like to be able to set a Keyword (with an argument required) and copy this argument ({query}) to the clipboard then add an AppleScript action that could read the clipboard and use the {query} this way.

     

    To do so it would be necessary an action to Copy to Clipboard or an option in Keyword input to copy the argument ({query}) to the clipboard before running the action.

     

    Thanks! :)

     

     

  3. Carlos, download the latest version (same link as in first post) and test local mailboxes. Like I said, I don't really use local mailboxes but from my limited testing it seems to be working.

     

    Also guys, new feature. type minfo and choose to either view the Info & Usage or Change Log. It tries to use Marked, if you don't have it installed it will use your default app for md files.

     

    I tried the latest version but it seems that nothing has changed.

     

    My local mailboxes were not listed.

     

    I have even downloaded the file two more times to make sure I was installing a new version.

     

    In addition, I manually deleted the mbCache.plist because if you delete the Workflow using Alfred interface the file is not deleted.

  4. Heh, nice test Carlos.

     

    Point 1: Workflow Data should exist. What version are you using? If I'm not mistaken, Workflow Data was introduced in b86 (or sooner).

    Point 2: Yeah, I don'r really use local mailboxes so I didn't foresee that, sorry about that. I'll have a look into fixing that soon.

     

    Cheers,

    PL

     

    Point 1: I was using b72. I have updated to b94.

     

    Point 2: Great! Thank you.

  5. I’ve just installed it. It’s a great idea but it does not list any mailbox (mm and mg commands) at all.

     

    By the way, there is no "...Workflow Data/com.palobo.mailactions/mbCache.plist” in my "~/Library/Application Support/Alfred 2” folder. Maybe the the Workflow is not creating it as soon as it is installed?

     

    Thank you.

     

     

    Upate 01:

     

    Here’s an error from the Workflow log:

     

    getList.scpt: execution error: Can’t make "Finder got an error: Can’t make \"Macintosh HD:Users:XXX:Library:Application Support:Alfred 2:Workflow Data:\" into type item." into type boolean. (-1700)

     

     

    Update 02:

     

    I checked the Workflow code and it seems it was expecting the “Workflow Data” to exist. I created it and now the Workflow lists mailboxes but in a strange way e.g. missing mailboxes, sometimes as I type the last letter is repeated… I’ll check a bit more. 

     

    Update 03:

     

    By the way, the mbCache.plist didn’t list mailboxes created On My Mac. It seems it is listing only default mailboxes, such as INBOX or TRASH or JUNK and mailboxes created On iCloud.

     

    Update 04:

     

    I edited the mbCache.plist to make some tests and it seems the Workflow is expecting an account name but local (on mac) mailboxes are not attached to an account.

     

     

    Update 05:

     

    I’ve edited “moveMsg.scpt” and removed the "of account acct” part of the code and it is working for local (on mac) mailboxes. However, this part of the code seems to be necessary for mailboxes attached to an account (such as iCloud).

     

    I had to manually edit mbCache.plist to add the local mailboxes first though.

     

    In resume, the Workflow as it is does not work with local mailboxes but I think there is a way… :)

     

    Conclusion:

     

    In order to work with local mailboxes the account string could be null so the moveMsg.scpt can filter action to move considering an account or not.

     

    However, I’m not sure how you will list local mailboxes in the mbCache.plist.

×
×
  • Create New...