Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Move email attachments

Featured Replies

I'm using 360works email to down load emails from a IMAP server. When it downloads an email with an attachment it puts that down in a temp folder on the local HD. I want to move that to a folder on the desktop. I have wrote a script that loops through the new emails recieved and it calls an applescript to move the emails. The problem is that it does not move all the attachments. it is not consistent sometimes it will move a file and some times it will not.

Here is the applescript that I'm running

tell application "FileMaker Pro Advanced"

set cloc to cell "Temp path name" of current record

set dp to cell "temp desktop path" of current record

end tell

end try

tell application "Finder"

set dloc to ((dp as text) & "Test_File_Move")

end tell

tell application "Finder"

activate

duplicate cloc to dloc

delay (3)

end tell

Any help on this would be appreciated or if I could just direct them to some other place other than that temp folder when it downloads would be great too, I will take anything at this point

I think that the easiest solution for you would be to use the EmailReadAttachment function to import the attachment into a container field, and then as your next script step use export field contents to save the attachment to a location on your hard drive.

Also, this is the ScriptMaster forum. You should post Email plugin questions in the forum for that plugin.

Edited by Guest

  • Author

Thanks for the reply, I did try to put them in a container field but some of the emails have 10 or 15 attachments and it would not import all of them. I most likely could have been something I was doing wrong.

  • Author

I think I have resolved this by replacing the part of the applescript that was duplicating the file.

Here is the new applescript that I'm running (I changed the line where it was duplicating the file to move and it seems to work)

tell application "FileMaker Pro Advanced"

set cloc to cell "Temp path name" of current record

set dp to cell "temp desktop path" of current record

end tell

end try

tell application "Finder"

set dloc to ((dp as text) & "Test_File_Move")

end tell

tell application "Finder"

activate

move file cloc to folder dloc

delay (3)

end tell

Note: if I just used the move without saying move file to folder it did not work for some reason.

For the time being I think the problem is resolved

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.