• 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: Finder inconsistency (Was: What makes AppleScript difficult)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder inconsistency (Was: What makes AppleScript difficult)


  • Subject: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • From: Skeeve <email@hidden>
  • Date: Fri, 07 Dec 2007 16:39:00 +0100

Emmanuel wrote:
On Dec 6, 2007, at 11:13 PM, Skeeve wrote:
So you will replace a file that was placed there by another application?
Bad idea! Very Bad!

My ยค0.02 on this: I usually recommend that you include your app's name in the temporary file's name.

I get the feeling, no one reads the original post :-(

To sum it up
- There is a file "foo" in the original location
- It has to be copied as "bar" to the target destination
- There is no file named "bar" allowed in the original location
 so copy in original location, rename, move to target isn't an option
- There is no file "foo" allowed in the target location
 so copy to target and rename isn't an option either


This is most easily done with something like a do shell script "mv " & original_foo & " " & target_bar


But there is no way to do it in a clean way without "do shell script". At least I don't know of any. I challenge you all to show me one. All the options shown yet are no clean solutions because they have side effects like possibly destroying another application's temporary files.


And I'm just lamenting that there is no such way in Finder.



_______________________________________________
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: Finder inconsistency (Was: What makes AppleScript difficult)
      • From: Luther Fuller <email@hidden>
    • Re: Finder inconsistency (Was: What makes AppleScript difficult)
      • From: Emmanuel <email@hidden>
References: 
 >What makes AppleScript difficult (From: Richard Doust <email@hidden>)
 >Finder inconsistency (Was: What makes AppleScript difficult) (From: Skeeve <email@hidden>)
 >Re: Finder inconsistency (Was: What makes AppleScript difficult) (From: Luther Fuller <email@hidden>)
 >Re: Finder inconsistency (Was: What makes AppleScript difficult) (From: Skeeve <email@hidden>)
 >Re: Finder inconsistency (Was: What makes AppleScript difficult) (From: Michelle Steiner <email@hidden>)
 >Re: Finder inconsistency (Was: What makes AppleScript difficult) (From: Skeeve <email@hidden>)
 >Re: Finder inconsistency (Was: What makes AppleScript difficult) (From: Luther Fuller <email@hidden>)
 >Re: Finder inconsistency (Was: What makes AppleScript difficult) (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Next by Date: pulling substrings, test first
  • Previous by thread: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Next by thread: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Index(es):
    • Date
    • Thread