Apple Script- Search Folder and Rename files












0















Im looking for some help with an addition to a larger apple script, ive seen lots of similar queries but none that quite fit the bill, so if anyone can help or direct me to an answer it would be a huge help,



I wanting to follow this general premise



`“Choose Name” default answer “”
set ChosenName to text returned of result



set ImagesFolder to (choose folder with prompt “Choose Images Folder:”)`



The bit im struggling with



if the ImagesFolder contains a folder named “Image Set 1” then
look through the folder “Images Set 1” and rename the contents using this logic



if file name conatins 0001_ rename file to ChosenName & “front”



if file name conatins 0002_ rename file to ChosenName & “Back”



if file name conatins 0003_ rename file to ChosenName & “Top”



if file name conatins 0004_ rename file to ChosenNamet & “Bottom”



else



if the ImagesFolder contains a folder named “Image Set 2” then
look through the folder images 2 and rename the content using this logic



if file name conatins 0001_ rename file to ChosenName & “F”



if file name conatins 0002_ rename file to ChosenName & “B”



if file name conatins 0003_ rename file to ChosenName & “T”



if file name conatins 0004_ rename file to ChosenNamet & “B”



(The unqiue characters im using to identify these files are always the last characters if this helps)



Thanks
P










share|improve this question



























    0















    Im looking for some help with an addition to a larger apple script, ive seen lots of similar queries but none that quite fit the bill, so if anyone can help or direct me to an answer it would be a huge help,



    I wanting to follow this general premise



    `“Choose Name” default answer “”
    set ChosenName to text returned of result



    set ImagesFolder to (choose folder with prompt “Choose Images Folder:”)`



    The bit im struggling with



    if the ImagesFolder contains a folder named “Image Set 1” then
    look through the folder “Images Set 1” and rename the contents using this logic



    if file name conatins 0001_ rename file to ChosenName & “front”



    if file name conatins 0002_ rename file to ChosenName & “Back”



    if file name conatins 0003_ rename file to ChosenName & “Top”



    if file name conatins 0004_ rename file to ChosenNamet & “Bottom”



    else



    if the ImagesFolder contains a folder named “Image Set 2” then
    look through the folder images 2 and rename the content using this logic



    if file name conatins 0001_ rename file to ChosenName & “F”



    if file name conatins 0002_ rename file to ChosenName & “B”



    if file name conatins 0003_ rename file to ChosenName & “T”



    if file name conatins 0004_ rename file to ChosenNamet & “B”



    (The unqiue characters im using to identify these files are always the last characters if this helps)



    Thanks
    P










    share|improve this question

























      0












      0








      0


      1






      Im looking for some help with an addition to a larger apple script, ive seen lots of similar queries but none that quite fit the bill, so if anyone can help or direct me to an answer it would be a huge help,



      I wanting to follow this general premise



      `“Choose Name” default answer “”
      set ChosenName to text returned of result



      set ImagesFolder to (choose folder with prompt “Choose Images Folder:”)`



      The bit im struggling with



      if the ImagesFolder contains a folder named “Image Set 1” then
      look through the folder “Images Set 1” and rename the contents using this logic



      if file name conatins 0001_ rename file to ChosenName & “front”



      if file name conatins 0002_ rename file to ChosenName & “Back”



      if file name conatins 0003_ rename file to ChosenName & “Top”



      if file name conatins 0004_ rename file to ChosenNamet & “Bottom”



      else



      if the ImagesFolder contains a folder named “Image Set 2” then
      look through the folder images 2 and rename the content using this logic



      if file name conatins 0001_ rename file to ChosenName & “F”



      if file name conatins 0002_ rename file to ChosenName & “B”



      if file name conatins 0003_ rename file to ChosenName & “T”



      if file name conatins 0004_ rename file to ChosenNamet & “B”



      (The unqiue characters im using to identify these files are always the last characters if this helps)



      Thanks
      P










      share|improve this question














      Im looking for some help with an addition to a larger apple script, ive seen lots of similar queries but none that quite fit the bill, so if anyone can help or direct me to an answer it would be a huge help,



      I wanting to follow this general premise



      `“Choose Name” default answer “”
      set ChosenName to text returned of result



      set ImagesFolder to (choose folder with prompt “Choose Images Folder:”)`



      The bit im struggling with



      if the ImagesFolder contains a folder named “Image Set 1” then
      look through the folder “Images Set 1” and rename the contents using this logic



      if file name conatins 0001_ rename file to ChosenName & “front”



      if file name conatins 0002_ rename file to ChosenName & “Back”



      if file name conatins 0003_ rename file to ChosenName & “Top”



      if file name conatins 0004_ rename file to ChosenNamet & “Bottom”



      else



      if the ImagesFolder contains a folder named “Image Set 2” then
      look through the folder images 2 and rename the content using this logic



      if file name conatins 0001_ rename file to ChosenName & “F”



      if file name conatins 0002_ rename file to ChosenName & “B”



      if file name conatins 0003_ rename file to ChosenName & “T”



      if file name conatins 0004_ rename file to ChosenNamet & “B”



      (The unqiue characters im using to identify these files are always the last characters if this helps)



      Thanks
      P







      applescript rename batch-rename






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 22:11









      JdGJdG

      74




      74
























          1 Answer
          1






          active

          oldest

          votes


















          0














          This script does what you need. You need to extend it to also manage the "Image Set 2" folder and its extension name, but It will be quite easy to just duplicate what's inside the Tell "Finder" block.



          Because you have multiple folder, I used a sub-routine to process your folder, each time calling new rule. For instance the 1st rule is to process "Image Set 1, search for 0001,0002,0003,0004 and replace each with Front,Back,Top, Bottom.



          The rule 2 is to process "Image Set 2, search for 0001,0002,0003,0004 and replace each with F,B,T, B.



          The first part build the rules. The script itself is reduced to a loop through each rule, calling the sub-routine "Process_SubFolder" with the 3 variables: sub folder name, current targets and new names.



          (* 
          Define record Rule, made of 3 variables :
          NFolderNFolder: the name of sub-folder
          NSource : the list of part of file names to be processed
          NDest : the list of new names. This list MUST count same number of items as NSource
          All rules are added into ListRules
          *)
          global ChosenName, ImagesFolder -- mandatory to use in the sub-routine

          set Rule to {NFolder:"Image Set 1", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"Front", "Back", "Top", "Bottom"}}
          set ListRules to {Rule}
          set Rule to {NFolder:"Image Set 2", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"F", "B", "T", "B"}}
          set ListRules to ListRules & {Rule}


          set R to display dialog "Enter a name" default answer ""
          set ChosenName to text returned of R
          if ChosenName is "" then return -- no name selected, end of script

          set ImagesFolder to choose folder with prompt "Choose Images Folder:"
          repeat with aRule in ListRules
          Process_SubFolder(NFolder of aRule, NSource of aRule, NDest of aRule)
          end repeat
          -- end of main script


          on Process_SubFolder(LFolder, LSource, LDest)
          tell application "Finder"
          set SubFolder to (ImagesFolder as string) & LFolder
          if folder SubFolder exists then
          set FileList to every file of folder SubFolder -- get all files of Images Set 1
          repeat with aFile in FileList -- loop through each file
          set FName to name of aFile
          set NewName to ""

          -- Manage extension of the file
          if name extension of aFile is "" then
          set NewExt to ""
          else
          set NewExt to "." & name extension of aFile
          end if

          repeat with I from 1 to count of LSource --loop trhough each source of the rule
          if FName contains (item I of LSource) then set NewName to ChosenName & (item I of LDest) & NewExt
          end repeat
          if NewName is not "" then set name of aFile to NewName -- only if name must be changed !
          end repeat -- loop through files of LFolder
          end if -- folder exists
          end tell
          end Process_SubFolder


          With this structure, you can add as many rules as you want !



          Of course, I assume that you will never get twice same names in sub folder ! It is not the case in Image Set 2, where you will have 2 files with new name = ChosenNameB : it will create an error !!






          share|improve this answer


























          • Hi Thanks for your reply, I gave that a whirl and it worked a treat, I'm more than likley going to increase the number of sub folders and add more "values to be" so a sub routine sounds more appropriate, how best would i achieve this? Thanks P

            – JdG
            Nov 23 '18 at 21:11











          • script updated with sub-routine for multiple rules

            – pbell
            Nov 24 '18 at 8:40











          • This is amazing worked perfectly!! I was able to create additional rules without any issue. Thank you so much for your help ,P

            – JdG
            Nov 24 '18 at 15:48













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53438520%2fapple-script-search-folder-and-rename-files%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          This script does what you need. You need to extend it to also manage the "Image Set 2" folder and its extension name, but It will be quite easy to just duplicate what's inside the Tell "Finder" block.



          Because you have multiple folder, I used a sub-routine to process your folder, each time calling new rule. For instance the 1st rule is to process "Image Set 1, search for 0001,0002,0003,0004 and replace each with Front,Back,Top, Bottom.



          The rule 2 is to process "Image Set 2, search for 0001,0002,0003,0004 and replace each with F,B,T, B.



          The first part build the rules. The script itself is reduced to a loop through each rule, calling the sub-routine "Process_SubFolder" with the 3 variables: sub folder name, current targets and new names.



          (* 
          Define record Rule, made of 3 variables :
          NFolderNFolder: the name of sub-folder
          NSource : the list of part of file names to be processed
          NDest : the list of new names. This list MUST count same number of items as NSource
          All rules are added into ListRules
          *)
          global ChosenName, ImagesFolder -- mandatory to use in the sub-routine

          set Rule to {NFolder:"Image Set 1", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"Front", "Back", "Top", "Bottom"}}
          set ListRules to {Rule}
          set Rule to {NFolder:"Image Set 2", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"F", "B", "T", "B"}}
          set ListRules to ListRules & {Rule}


          set R to display dialog "Enter a name" default answer ""
          set ChosenName to text returned of R
          if ChosenName is "" then return -- no name selected, end of script

          set ImagesFolder to choose folder with prompt "Choose Images Folder:"
          repeat with aRule in ListRules
          Process_SubFolder(NFolder of aRule, NSource of aRule, NDest of aRule)
          end repeat
          -- end of main script


          on Process_SubFolder(LFolder, LSource, LDest)
          tell application "Finder"
          set SubFolder to (ImagesFolder as string) & LFolder
          if folder SubFolder exists then
          set FileList to every file of folder SubFolder -- get all files of Images Set 1
          repeat with aFile in FileList -- loop through each file
          set FName to name of aFile
          set NewName to ""

          -- Manage extension of the file
          if name extension of aFile is "" then
          set NewExt to ""
          else
          set NewExt to "." & name extension of aFile
          end if

          repeat with I from 1 to count of LSource --loop trhough each source of the rule
          if FName contains (item I of LSource) then set NewName to ChosenName & (item I of LDest) & NewExt
          end repeat
          if NewName is not "" then set name of aFile to NewName -- only if name must be changed !
          end repeat -- loop through files of LFolder
          end if -- folder exists
          end tell
          end Process_SubFolder


          With this structure, you can add as many rules as you want !



          Of course, I assume that you will never get twice same names in sub folder ! It is not the case in Image Set 2, where you will have 2 files with new name = ChosenNameB : it will create an error !!






          share|improve this answer


























          • Hi Thanks for your reply, I gave that a whirl and it worked a treat, I'm more than likley going to increase the number of sub folders and add more "values to be" so a sub routine sounds more appropriate, how best would i achieve this? Thanks P

            – JdG
            Nov 23 '18 at 21:11











          • script updated with sub-routine for multiple rules

            – pbell
            Nov 24 '18 at 8:40











          • This is amazing worked perfectly!! I was able to create additional rules without any issue. Thank you so much for your help ,P

            – JdG
            Nov 24 '18 at 15:48


















          0














          This script does what you need. You need to extend it to also manage the "Image Set 2" folder and its extension name, but It will be quite easy to just duplicate what's inside the Tell "Finder" block.



          Because you have multiple folder, I used a sub-routine to process your folder, each time calling new rule. For instance the 1st rule is to process "Image Set 1, search for 0001,0002,0003,0004 and replace each with Front,Back,Top, Bottom.



          The rule 2 is to process "Image Set 2, search for 0001,0002,0003,0004 and replace each with F,B,T, B.



          The first part build the rules. The script itself is reduced to a loop through each rule, calling the sub-routine "Process_SubFolder" with the 3 variables: sub folder name, current targets and new names.



          (* 
          Define record Rule, made of 3 variables :
          NFolderNFolder: the name of sub-folder
          NSource : the list of part of file names to be processed
          NDest : the list of new names. This list MUST count same number of items as NSource
          All rules are added into ListRules
          *)
          global ChosenName, ImagesFolder -- mandatory to use in the sub-routine

          set Rule to {NFolder:"Image Set 1", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"Front", "Back", "Top", "Bottom"}}
          set ListRules to {Rule}
          set Rule to {NFolder:"Image Set 2", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"F", "B", "T", "B"}}
          set ListRules to ListRules & {Rule}


          set R to display dialog "Enter a name" default answer ""
          set ChosenName to text returned of R
          if ChosenName is "" then return -- no name selected, end of script

          set ImagesFolder to choose folder with prompt "Choose Images Folder:"
          repeat with aRule in ListRules
          Process_SubFolder(NFolder of aRule, NSource of aRule, NDest of aRule)
          end repeat
          -- end of main script


          on Process_SubFolder(LFolder, LSource, LDest)
          tell application "Finder"
          set SubFolder to (ImagesFolder as string) & LFolder
          if folder SubFolder exists then
          set FileList to every file of folder SubFolder -- get all files of Images Set 1
          repeat with aFile in FileList -- loop through each file
          set FName to name of aFile
          set NewName to ""

          -- Manage extension of the file
          if name extension of aFile is "" then
          set NewExt to ""
          else
          set NewExt to "." & name extension of aFile
          end if

          repeat with I from 1 to count of LSource --loop trhough each source of the rule
          if FName contains (item I of LSource) then set NewName to ChosenName & (item I of LDest) & NewExt
          end repeat
          if NewName is not "" then set name of aFile to NewName -- only if name must be changed !
          end repeat -- loop through files of LFolder
          end if -- folder exists
          end tell
          end Process_SubFolder


          With this structure, you can add as many rules as you want !



          Of course, I assume that you will never get twice same names in sub folder ! It is not the case in Image Set 2, where you will have 2 files with new name = ChosenNameB : it will create an error !!






          share|improve this answer


























          • Hi Thanks for your reply, I gave that a whirl and it worked a treat, I'm more than likley going to increase the number of sub folders and add more "values to be" so a sub routine sounds more appropriate, how best would i achieve this? Thanks P

            – JdG
            Nov 23 '18 at 21:11











          • script updated with sub-routine for multiple rules

            – pbell
            Nov 24 '18 at 8:40











          • This is amazing worked perfectly!! I was able to create additional rules without any issue. Thank you so much for your help ,P

            – JdG
            Nov 24 '18 at 15:48
















          0












          0








          0







          This script does what you need. You need to extend it to also manage the "Image Set 2" folder and its extension name, but It will be quite easy to just duplicate what's inside the Tell "Finder" block.



          Because you have multiple folder, I used a sub-routine to process your folder, each time calling new rule. For instance the 1st rule is to process "Image Set 1, search for 0001,0002,0003,0004 and replace each with Front,Back,Top, Bottom.



          The rule 2 is to process "Image Set 2, search for 0001,0002,0003,0004 and replace each with F,B,T, B.



          The first part build the rules. The script itself is reduced to a loop through each rule, calling the sub-routine "Process_SubFolder" with the 3 variables: sub folder name, current targets and new names.



          (* 
          Define record Rule, made of 3 variables :
          NFolderNFolder: the name of sub-folder
          NSource : the list of part of file names to be processed
          NDest : the list of new names. This list MUST count same number of items as NSource
          All rules are added into ListRules
          *)
          global ChosenName, ImagesFolder -- mandatory to use in the sub-routine

          set Rule to {NFolder:"Image Set 1", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"Front", "Back", "Top", "Bottom"}}
          set ListRules to {Rule}
          set Rule to {NFolder:"Image Set 2", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"F", "B", "T", "B"}}
          set ListRules to ListRules & {Rule}


          set R to display dialog "Enter a name" default answer ""
          set ChosenName to text returned of R
          if ChosenName is "" then return -- no name selected, end of script

          set ImagesFolder to choose folder with prompt "Choose Images Folder:"
          repeat with aRule in ListRules
          Process_SubFolder(NFolder of aRule, NSource of aRule, NDest of aRule)
          end repeat
          -- end of main script


          on Process_SubFolder(LFolder, LSource, LDest)
          tell application "Finder"
          set SubFolder to (ImagesFolder as string) & LFolder
          if folder SubFolder exists then
          set FileList to every file of folder SubFolder -- get all files of Images Set 1
          repeat with aFile in FileList -- loop through each file
          set FName to name of aFile
          set NewName to ""

          -- Manage extension of the file
          if name extension of aFile is "" then
          set NewExt to ""
          else
          set NewExt to "." & name extension of aFile
          end if

          repeat with I from 1 to count of LSource --loop trhough each source of the rule
          if FName contains (item I of LSource) then set NewName to ChosenName & (item I of LDest) & NewExt
          end repeat
          if NewName is not "" then set name of aFile to NewName -- only if name must be changed !
          end repeat -- loop through files of LFolder
          end if -- folder exists
          end tell
          end Process_SubFolder


          With this structure, you can add as many rules as you want !



          Of course, I assume that you will never get twice same names in sub folder ! It is not the case in Image Set 2, where you will have 2 files with new name = ChosenNameB : it will create an error !!






          share|improve this answer















          This script does what you need. You need to extend it to also manage the "Image Set 2" folder and its extension name, but It will be quite easy to just duplicate what's inside the Tell "Finder" block.



          Because you have multiple folder, I used a sub-routine to process your folder, each time calling new rule. For instance the 1st rule is to process "Image Set 1, search for 0001,0002,0003,0004 and replace each with Front,Back,Top, Bottom.



          The rule 2 is to process "Image Set 2, search for 0001,0002,0003,0004 and replace each with F,B,T, B.



          The first part build the rules. The script itself is reduced to a loop through each rule, calling the sub-routine "Process_SubFolder" with the 3 variables: sub folder name, current targets and new names.



          (* 
          Define record Rule, made of 3 variables :
          NFolderNFolder: the name of sub-folder
          NSource : the list of part of file names to be processed
          NDest : the list of new names. This list MUST count same number of items as NSource
          All rules are added into ListRules
          *)
          global ChosenName, ImagesFolder -- mandatory to use in the sub-routine

          set Rule to {NFolder:"Image Set 1", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"Front", "Back", "Top", "Bottom"}}
          set ListRules to {Rule}
          set Rule to {NFolder:"Image Set 2", NSource:{"0001", "0002", "0003", "0004"}, NDest:{"F", "B", "T", "B"}}
          set ListRules to ListRules & {Rule}


          set R to display dialog "Enter a name" default answer ""
          set ChosenName to text returned of R
          if ChosenName is "" then return -- no name selected, end of script

          set ImagesFolder to choose folder with prompt "Choose Images Folder:"
          repeat with aRule in ListRules
          Process_SubFolder(NFolder of aRule, NSource of aRule, NDest of aRule)
          end repeat
          -- end of main script


          on Process_SubFolder(LFolder, LSource, LDest)
          tell application "Finder"
          set SubFolder to (ImagesFolder as string) & LFolder
          if folder SubFolder exists then
          set FileList to every file of folder SubFolder -- get all files of Images Set 1
          repeat with aFile in FileList -- loop through each file
          set FName to name of aFile
          set NewName to ""

          -- Manage extension of the file
          if name extension of aFile is "" then
          set NewExt to ""
          else
          set NewExt to "." & name extension of aFile
          end if

          repeat with I from 1 to count of LSource --loop trhough each source of the rule
          if FName contains (item I of LSource) then set NewName to ChosenName & (item I of LDest) & NewExt
          end repeat
          if NewName is not "" then set name of aFile to NewName -- only if name must be changed !
          end repeat -- loop through files of LFolder
          end if -- folder exists
          end tell
          end Process_SubFolder


          With this structure, you can add as many rules as you want !



          Of course, I assume that you will never get twice same names in sub folder ! It is not the case in Image Set 2, where you will have 2 files with new name = ChosenNameB : it will create an error !!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 24 '18 at 8:37

























          answered Nov 23 '18 at 7:51









          pbellpbell

          1,9431810




          1,9431810













          • Hi Thanks for your reply, I gave that a whirl and it worked a treat, I'm more than likley going to increase the number of sub folders and add more "values to be" so a sub routine sounds more appropriate, how best would i achieve this? Thanks P

            – JdG
            Nov 23 '18 at 21:11











          • script updated with sub-routine for multiple rules

            – pbell
            Nov 24 '18 at 8:40











          • This is amazing worked perfectly!! I was able to create additional rules without any issue. Thank you so much for your help ,P

            – JdG
            Nov 24 '18 at 15:48





















          • Hi Thanks for your reply, I gave that a whirl and it worked a treat, I'm more than likley going to increase the number of sub folders and add more "values to be" so a sub routine sounds more appropriate, how best would i achieve this? Thanks P

            – JdG
            Nov 23 '18 at 21:11











          • script updated with sub-routine for multiple rules

            – pbell
            Nov 24 '18 at 8:40











          • This is amazing worked perfectly!! I was able to create additional rules without any issue. Thank you so much for your help ,P

            – JdG
            Nov 24 '18 at 15:48



















          Hi Thanks for your reply, I gave that a whirl and it worked a treat, I'm more than likley going to increase the number of sub folders and add more "values to be" so a sub routine sounds more appropriate, how best would i achieve this? Thanks P

          – JdG
          Nov 23 '18 at 21:11





          Hi Thanks for your reply, I gave that a whirl and it worked a treat, I'm more than likley going to increase the number of sub folders and add more "values to be" so a sub routine sounds more appropriate, how best would i achieve this? Thanks P

          – JdG
          Nov 23 '18 at 21:11













          script updated with sub-routine for multiple rules

          – pbell
          Nov 24 '18 at 8:40





          script updated with sub-routine for multiple rules

          – pbell
          Nov 24 '18 at 8:40













          This is amazing worked perfectly!! I was able to create additional rules without any issue. Thank you so much for your help ,P

          – JdG
          Nov 24 '18 at 15:48







          This is amazing worked perfectly!! I was able to create additional rules without any issue. Thank you so much for your help ,P

          – JdG
          Nov 24 '18 at 15:48




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53438520%2fapple-script-search-folder-and-rename-files%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          Refactoring coordinates for Minecraft Pi buildings written in Python