• 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: sqlite question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sqlite question


  • Subject: Re: sqlite question
  • From: Jim Weisbin <email@hidden>
  • Date: Sun, 19 Apr 2015 07:37:31 -0400

Shane Stanley <email@hidden> wrote:

Is that the time for the whole script? Because I suspect the time in the former might be taken up by dealing with the results, rather than fetching them. And that code could possibly be sped up considerably.

I can’t time the whole script because it stops for user input.

But I’m not sure how I could speed this up:

set theCommand to "sqlite3 " & path_to_db & " 'select file_name FROM player_view;' "
set theResult to do shell script theCommand
set theText to paragraphs of theResult

— etc

if newName is in theText then
error newName & " already exists!"
end if

— Jim Weisbin
 _______________________________________________
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: sqlite question
      • From: Axel Luttgens <email@hidden>
    • Re: sqlite question
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Scriplting the Photos application
  • Next by Date: Re: Scriplting the Photos application
  • Previous by thread: Re: sqlite question
  • Next by thread: Re: sqlite question
  • Index(es):
    • Date
    • Thread