• 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: Script to save webloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to save webloc


  • Subject: Re: Script to save webloc
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 9 Jan 2009 17:07:26 -0500

If I could take a step back and ask a more general question... if your
goal is to save bookmarks in a cross-platform manner, why not use any
of the dozen websites that do just that?  I use Delicious (formerly
del.icio.us), which among other features has plugins that let it
integrate directly into IE, Firefox, and Safari...



On 1/9/09, Fuller Luther <email@hidden> wrote:
> On Jan 9, 2009, at 3:03 PM, Scott Haneda wrote:
>
>> The second item I can not solve, is duplicate file names.  In my
>> solution, I do shell script and echo a value into a file name with
>> redirection ala ">".  If the html file name is the same as another
>> one, the old one will get wiped.
>
> I have a number of AppleScripted applications that copy files to
> another folder with an almost certain chance of duplicate file names.
> I simply append the original file name with 'space & suffixNr', where
> suffixNr is an integer. You search for duplicates in a repeat loop
> until you find a name not in use, then use that name. It will cause
> problems only if it starts having to use a large value for suffixNr.
> Unlikely in my scripts, but your results may vary.
>
> BUT ... There's another little problem that will cause problems if you
> don't handle it correctly. You need to append 'space & suffixNr' to
> the file name after removing the extension, then reattach the
> extension. Remember: the 'name' of an item is the full name including
> the extension, while 'name extension' is what follows the last "." in
> the name, if it exists. (Don't use 'displayed name', you don't know
> where that thing has been.)
>
>  _______________________________________________
> 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
>

--
Sent from Gmail for mobile | mobile.google.com

Mark J. Reed <email@hidden>
 _______________________________________________
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: Script to save webloc
      • From: Scott Haneda <email@hidden>
References: 
 >Script to save webloc (From: Scott Haneda <email@hidden>)
 >Re: Script to save webloc (From: Fuller Luther <email@hidden>)
 >Re: Script to save webloc (From: Scott Haneda <email@hidden>)
 >Re: Script to save webloc (From: Philip Aker <email@hidden>)
 >Re: Script to save webloc (From: Scott Haneda <email@hidden>)
 >Re: Script to save webloc (From: Fuller Luther <email@hidden>)
 >Re: Script to save webloc (From: Scott Haneda <email@hidden>)
 >Re: Script to save webloc (From: Fuller Luther <email@hidden>)
 >Re: Script to save webloc (From: Scott Haneda <email@hidden>)
 >Re: Script to save webloc (From: Fuller Luther <email@hidden>)

  • Prev by Date: Re: Script to save webloc
  • Next by Date: Re: Assigning Quark color spec - Tiger->Leopard
  • Previous by thread: Re: Script to save webloc
  • Next by thread: Re: Script to save webloc
  • Index(es):
    • Date
    • Thread