• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DS Store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DS Store


  • Subject: Re: DS Store
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 13 Aug 2009 08:26:14 -0700

On Aug 13, 2009, at 8:17 AM, Steve Digby wrote:

Thanks for that suggestion. However, when I tested the revised script on this line of the script:

Try breaking up the script into two parts; use the system-events part t set the list, and the original Finder part to do the move.

set originalFolderPath to "Central Storage:Shipping:EDI FILES:tmp:inv tmp:"
set newfolderpath to "Central Storage:Shipping:EDI FILES:Freeway:invoice:"

tell application "System Events"
set fileList to every file in folder originalFolderPath whose visible is true
end tell

tell application "Finder"
repeat with i from 1 to count fileList
set thisFilePath to item i of fileList
if name of thisFilePath ends with "inv.txt" then
duplicate thisFilePath to folder newfolderpath with replacing
end if
end repeat
end tell

Or possibly this:
set originalFolderPath to "Central Storage:Shipping:EDI FILES:tmp:inv tmp:"
set newfolderpath to "Central Storage:Shipping:EDI FILES:Freeway:invoice:"

tell application "System Events"
set fileList to every file in folder originalFolderPath whose visible is true and name ends with "inv.txt"
end tell

tell application "Finder"
repeat with i from 1 to count fileList
set thisFilePath to item i of fileList
duplicate thisFilePath to folder newfolderpath with replacing
end repeat
end tell

-- Michelle

-- 
--------------------------------------------------------
      Misquotation of unattributed, trite
        metaphysical saying goes here.

  Stupid ascii               Unnecessary notice of
graphic goes here.        responsibility goes here.
---------------------------------------------------------

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: DS Store
      • From: Steve Digby <email@hidden>
References: 
 >Re: DS Store (From: Steve Digby <email@hidden>)

  • Prev by Date: Re: DS Store
  • Next by Date: Re: DS Store
  • Previous by thread: Re: DS Store
  • Next by thread: Re: DS Store
  • Index(es):
    • Date
    • Thread