Can AppleScript run a FixAlias script?

I have a large folder of pictures on a memory stick - the original folder on my HD also has a folder with a few hundred aliases for some of the pictures, which originally I didn't copy because I thought (mistakenly) there wouldn't be room.
Later I copied the alias folder to the memory stick, but despite the files having the same name, the Apple OS isn't smart enough to simply do a 'fix alias' automatically by assigning the alias (which points to a file on the HD) to the identical filename on the memory stick.
Is there an AppleScript which will do this? (I don't want to have to Fix Alias of 500 files in a folder of 4000+ items).

Hello
Try something like this.
If the alias files in question are valid aliases (i.e. not broken) just pointing to original items in HD, this sort of script may help.
Good luck,
H
-- SCRIPT
  redirect alias files
  v0.2
  This script will redirect alias files in specified folder such that each original item is reassigend by replacing
   its partial leading path given in property 'path1' with the partial path given in property 'path2'.
  (Meanwhile any broken aliases of which original items are not found will be moved to '_broken_' folder and
  any aliases of which assumed reassigned original items are not found will be moved to '_failed_' folder.
  And aliases of which original items' path do not start with path given in property 'path1' will remain as they are.)
  Usage:
    Change properties path1 and path2 to suit your needs and run the script, and it will
     let you choose a folder where alias files to be redirected reside.
    E.g.
    Provided original folders are:
      (1) HD:Users:[user_name]:Documents:Pictures:
      (2) HD:Users:[user_name]:Documents:Pictures:Aliases:  -- (this is irrelevant here)
    and copied folders are:
      (1a) ExtDisk:Pictures:
      (2a) ExtDisk:Pictures:Aliases:  -- (this is assumed to contain 'wrong' alias files pointing to items in (1))
    Then set:
      property path1 : "HD:Users:[user_name]:Documents:Pictures:"
      property path2 : "ExtDisk:Pictures:"
    and in choose folder prompt, choose folder:
      "ExtDisk:Pictures:Aliases:"
main()
on main()
script o
property path1 : "RAM Disk:test1:" -- searching leading partial path of original item of alias file.
property path2 : "RAM Disk:test2:" -- replacing leading partial path of original item of alias file.
property aa : {} -- list of original alias files.
property aa1 : {} -- list of broken alias files of which original items are not found.
property aa2 : {} -- list of failed alias files of which assumed reassigned original items are not found.
property aa3 : {} -- list of reassigend alias files.
property nn : {} -- list of name of original alias files.
property xx : {} -- list of original items of aa
property yy : {} -- list of reassigned orignal items of aa
property brokenFdn : "_broken_" -- folder name for aa1.
property failedFdn : "_failed_" -- folder name for aa2.
property mss1 : "Choose folder of alias files to be redirected."
property mss2 : "Alias redirection done."
on reassign(a)
  alias a
  property path1 -- searching leading partial path
  property path2 -- replacing leading partial path
  return either alias or false:
    alias a : original alias if no path substitution applied.
    alias a1 : reassigend alias created by a's leading partial path 'path1' being replaced by 'path2'
    false : reassignment failed, i.e. assumed reassigned object not found
local p
if a's class is not alias then return a
set p to "" & a
if p starts with path1 then
set p to path2 & (p's text ((path1's length) + 1) thru -1)
try
return (p as alias)
on error -- assumed reassigned object not found
return false
end try
else
return a
end if
end reassign
-- (0) accept folder of alias files
set fda to choose folder with prompt mss1
-- (1) get list of alias files, their name and original items
tell application "Finder"
tell item fda's alias files
try
set aa to it as alias list
on error
set aa to it as alias as list
end try
set nn to name as list
try
if (count my aa) = 1 then
set xx to original item as alias as list
else
set xx to original item as alias list
end if
on error number -1700 -- some alias file(s) broken
repeat with a in my aa
set a to a's contents
try
set end of my xx to a's original item as alias
on error -- broken alias file
set end of my xx to null
end try
end repeat
end try
end tell
end tell
-- (2) reassign original items
repeat with x in my xx
set end of yy to reassign(x's contents)
end repeat
-- (3) sort out original alias files and create new ones if necessary
repeat with i from 1 to count my aa
set yi to my yy's item i
if yi is null then -- broken
set end of my aa1 to my aa's item i
else if yi is false then -- failed, i.e. assumed reassigned original item not found
set end of my aa2 to my aa's item i
else if yi is not my xx's item i then -- reassigned
set end of my aa3 to my aa's item i
end if
end repeat
if my aa1 is not {} then
try
set fda1 to ("" & fda & brokenFdn & ":") as alias
on error
tell application "Finder" to ¬
set fda1 to (make new folder at fda with properties {name:brokenFdn}) as alias
end try
tell application "Finder" to move aa1 to fda1
end if
if my aa2 is not {} then
try
set fda2 to ("" & fda & failedFdn & ":") as alias
on error
tell application "Finder" to ¬
set fda2 to (make new folder at fda with properties {name:failedFdn}) as alias
end try
tell application "Finder" to move aa2 to fda2
end if
if my aa3 is not {} then
tell application "Finder" to delete aa3
-- recreate alias files
repeat with i from 1 to count my aa
if (my aa's item i) is in my aa3 then
tell application "Finder"
make new alias file at fda to (my yy's item i) with properties {name:my nn's item i}
end tell
end if
end repeat
end if
-- (4) post-processings: empty trash (optional) and decent notice
tell application "Finder"
--empty trash
activate
display dialog mss2 with icon 1 giving up after 5
end tell
end script
tell o to run
end main
-- END OF SCRIPT
  Mac OS 9.1.x  

Similar Messages

  • How can I run a SQL script file...

    How can I run a SQL script file from a location on my computer without providing the whole path?
    Is there some way I can set a "Working folder" in SQL Plus??
    Thanks!
    Tom

    You can create an environment variable called "SQLPATH" which is a list of directories that SQL*Plus will search for your .SQL
    scripts.
    I would like to use another directory than the oracle/bin...
    How can I do this ??
    Hello,
    U can do this by this way:
    Save odm_script.sql file to the default Oracle
    directory i.e. Oracle-Home/bin and Run following command
    through SQL Plus.
    SQL>@Script_Name
    I hope this will resolve ur problem.
    Regards,
    Omer Saeed Khan.

  • Can you run a bash script on boot in single user mode

    Hey guys quick question.
    Is it possible to run a bash script on boot in single user mode.
    I can create a file and dump it on the root hd.
    Let's call it repair.
    I can then boot to single user mode and run it by typing /repair.
    But I want it to do it automatically.
    Every time I go into my machines that I clean for my job. I have to run sbin/fsck -fy
    Then I have to mount the drive and then remove all cache files, then reboot the machines.
    I would like to automate this by just holding command s and then moving to the next computer.
    There must be some sort of boot daemon somewhere.
    Please help.
    Sincerely,
    John

    Have you seen Applejack?
    http://applejack.sourceforge.net/
    It doesn't start automtically, but does cleanup.
    Robert

  • Can not run the calc scripts by mxl, if the first character is Number

    I found that if you create the calc scrpt like 1abc.csc. You can not run it by mxl. I tried for times but do not know the reason for that. I found that you can use number in the name of the calc scripts(like abc1.csc, a1bc.csc), but not for the first character(like 1abc.csc).
    Below is my mxl scripts:
    ×××××××××××××××××××××××××××××××××××
    login admin identified by password on localhost;
    spool on to 'C:\abc.log' ;
    execute calculation sample.basic.1abc;
    spool off;
    logout;
    ×××××××××××××××××××××××××××××××××××
    I write a bat file below:
    ×××××××××××××××××××××××××××××××××××
    D:\Hyperion\AnalyticServices\bin\essmsh C:\abc.mxl
    ×××××××××××××××××××××××××××××××××××
    I can run the scripts if I change the name "1abc" to "abc1"or "a1bc".
    Of course I can run this calc in EAS, no matter the name is "1abc" or "abc1".
    Anybody find the same problem with me?

    I agree, if ever there was a "best practice" to developing scripts (especially when using variables) it is to enclose in single quotes. I actually use double quote, single quote.
    execute calculation "'$4'"."'$5'"."'$6'";

  • Can we run ICM Admin script every mimute ?

    Hi
    I have a requirement to run one Admin script every minute , does it make any overload to central controller ? . Anyone is using the same in production system?
    Regards
    Renni john

    I concur, I have a customer with many admin scripts checking time of day every minute for different locations and this is extremely busy contact center and we have never seen any related performace issues.
    Chris

  • How can I run a Unix script from a desktop icon?

    I have a Unix script I've created in vi and would like to run it by double clicking on an icon on my desktop. I would like to do this without the additional application layer of Applescript, Automator or Terminal. Is this possible?
    Thanks in advance.
    Howard

    Sounds like a job for platypus.

  • Can't run compiz-check script or any application ?!!!

    hi all
    I am new user in Arch .
    I am trying to install the Gpointing app so that I can set up the Cursor sensitivity in KDE but I get this:
    1st :
    ./configure >> and the result is bellow
    [yasser@(none) gpointing-device-settings-1.5.1]$ sudo ./configure
    Password:
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking how to create a pax tar archive... gnutar
    checking how to create a pax tar archive... (cached) gnutar
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking dependency style of gcc... (cached) gcc3
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking whether make sets $(MAKE)... (cached) yes
    checking whether NLS is requested... yes
    checking for intltool >= 0.35.0... 0.50.2 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for perl >= 5.8.1... 5.16.1
    checking for XML::Parser... ok
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for locale.h... (cached) yes
    checking for LC_MESSAGES... (cached) yes
    checking for libintl.h... (cached) yes
    checking for ngettext in libc... (cached) yes
    checking for dgettext in libc... (cached) yes
    checking for bind_textdomain_codeset... (cached) yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... (cached) yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 2.14.0... yes (version 2.24.11)
    checking for glib-genmarshal... /usr/bin/glib-genmarshal
    checking for glib-mkenums... /usr/bin/glib-mkenums
    checking pkg-config is at least version 0.9.0... yes
    checking for GNOME_SETTINGS_DAEMON... yes
    checking for GCONF2... yes
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for gconftool-2... /usr/bin/gconftool-2
    checking for XINPUT... yes
    checking for X11... yes
    checking for an ANSI C-conforming const... yes
    checking whether to use Cutter... (cached) auto
    checking for CUTTER... no
    checking for lcov... no
    checking for genhtml... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating modules/Makefile
    config.status: creating modules/common/Makefile
    config.status: creating modules/gnome-settings-daemon-plugins/Makefile
    config.status: creating data/Makefile
    config.status: creating data/gpointing-device-settings.desktop.in
    config.status: creating test/Makefile
    config.status: creating doc/Makefile
    config.status: creating po/Makefile.in
    config.status: creating libgpointing-device-settings.pc
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing default-1 commands
    config.status: executing default-2 commands
    config.status: executing po/stamp-it commands
    [yasser@(none) gpointing-device-settings-1.5.1]$ make
    make all-recursive
    make[1]: Entering directory `/home/yasser/gpointing-device-settings-1.5.1'
    Making all in src
    make[2]: Entering directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    CCLD gpointing-device-settings
    /usr/bin/ld: cannot open output file .libs/gpointing-device-settings: Permission denied
    collect2: error: ld returned 1 exit status
    make[2]: *** [gpointing-device-settings] Error 1
    make[2]: Leaving directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/yasser/gpointing-device-settings-1.5.1'
    make: *** [all] Error 2
    [yasser@(none) gpointing-device-settings-1.5.1]$ make install
    Making install in src
    make[1]: Entering directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    CCLD gpointing-device-settings
    /usr/bin/ld: cannot open output file .libs/gpointing-device-settings: Permission denied
    collect2: error: ld returned 1 exit status
    make[1]: *** [gpointing-device-settings] Error 1
    make[1]: Leaving directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    make: *** [install-recursive] Error 1
    [yasser@(none) gpointing-device-settings-1.5.1]$ ?????
    bash: ?????: command not found
    [yasser@(none) gpointing-device-settings-1.5.1]$ clear
    [yasser@(none) gpointing-device-settings-1.5.1]$ ./configure
    ./configure: line 2100: config.log: Permission denied
    ./configure: line 2110: config.log: Permission denied
    [yasser@(none) gpointing-device-settings-1.5.1]$ sudo ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking how to create a pax tar archive... gnutar
    checking how to create a pax tar archive... (cached) gnutar
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking dependency style of gcc... (cached) gcc3
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking whether make sets $(MAKE)... (cached) yes
    checking whether NLS is requested... yes
    checking for intltool >= 0.35.0... 0.50.2 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for perl >= 5.8.1... 5.16.1
    checking for XML::Parser... ok
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for locale.h... (cached) yes
    checking for LC_MESSAGES... (cached) yes
    checking for libintl.h... (cached) yes
    checking for ngettext in libc... (cached) yes
    checking for dgettext in libc... (cached) yes
    checking for bind_textdomain_codeset... (cached) yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... (cached) yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 2.14.0... yes (version 2.24.11)
    checking for glib-genmarshal... /usr/bin/glib-genmarshal
    checking for glib-mkenums... /usr/bin/glib-mkenums
    checking pkg-config is at least version 0.9.0... yes
    checking for GNOME_SETTINGS_DAEMON... yes
    checking for GCONF2... yes
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for gconftool-2... /usr/bin/gconftool-2
    checking for XINPUT... yes
    checking for X11... yes
    checking for an ANSI C-conforming const... yes
    checking whether to use Cutter... (cached) auto
    checking for CUTTER... no
    checking for lcov... no
    checking for genhtml... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating modules/Makefile
    config.status: creating modules/common/Makefile
    config.status: creating modules/gnome-settings-daemon-plugins/Makefile
    config.status: creating data/Makefile
    config.status: creating data/gpointing-device-settings.desktop.in
    config.status: creating test/Makefile
    config.status: creating doc/Makefile
    config.status: creating po/Makefile.in
    config.status: creating libgpointing-device-settings.pc
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing default-1 commands
    config.status: executing default-2 commands
    config.status: executing po/stamp-it commands.
    2nd >>> make .
    [yasser@(none) gpointing-device-settings-1.5.1]$ make
    make all-recursive
    make[1]: Entering directory `/home/yasser/gpointing-device-settings-1.5.1'
    Making all in src
    make[2]: Entering directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    CCLD gpointing-device-settings
    /usr/bin/ld: cannot open output file .libs/gpointing-device-settings: Permission denied
    collect2: error: ld returned 1 exit status
    make[2]: *** [gpointing-device-settings] Error 1
    make[2]: Leaving directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/yasser/gpointing-device-settings-1.5.1'
    make: *** [all] Error 2.
    3rd >> make install
    [yasser@(none) gpointing-device-settings-1.5.1]$ make install
    Making install in src
    make[1]: Entering directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    CCLD gpointing-device-settings
    /usr/bin/ld: cannot open output file .libs/gpointing-device-settings: Permission denied
    collect2: error: ld returned 1 exit status
    make[1]: *** [gpointing-device-settings] Error 1
    make[1]: Leaving directory `/home/yasser/gpointing-device-settings-1.5.1/src'
    make: *** [install-recursive] Error 1.
    I know this problem might be a silly problem for u guys but I really need to decrease the Cursor sensitivity because it's annoying .
    Moderator edit: Changed the [ quote ] tags to [ code ] ones for you to keep this readable. Please do so yourself in future. -- bernarcher
    Last edited by bernarcher (2012-09-02 16:44:51)

    I don't think you need to compile and install this yourself as it appears to already be in the AUR. You should download an AUR helper and use it to install gpointing-device-settings.
    Example using packer:
    sudo pacman -S wget # wget is for downloading packer, you can download it manually if you'd like
    mkdir ~/builds # Where you want to put packer's files, change if you'd like
    cd ~/builds
    wget http://aur.archlinux.org/packages/pa/packer/packer.tar.gz
    makepkg -s # Make sure you have the base-devel group installed
    sudo pacman -U packer
    packer -S gpointing-device-settings
    If this solves the problem, remember to edit your original post and add [Solved] to the beginning of the title.
    Last edited by Mindstormscreator (2012-09-02 18:52:08)

  • Can we run a unix script from sql plus

    Hello,
    Is there any possibility to run unix command from sql plus? I would appreciate if you can provide with the syntax.
    Thank You
    KK

    user539616 wrote:
    Hello,
    Is there any possibility to run unix command from sql plus? I would appreciate if you can provide with the syntax.
    Thank You
    KKWithin sqlplus you can run
    1) SQL statements
    2) PL/SQL blocks
    3) any valid sqlplus command.
    SQLplus commands are documented in the SQLPlus reference manual. For 10g this is found at http://docs.oracle.com/cd/B19306_01/server.102/b14357/toc.htm. You might be interested in the HOST command, detailed at http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12026.htm#sthref2314
    Just beware that the HOST command (or the shortcut version of it alluded to by Warren Tolentino) spawns a child process. When control comes back to sqlplus, that child process is gone.
    What is the business problem you are trying to solve? If we knew that we could probably give better advice than blindly giving you the correct technical answer to a narrow question.

  • Can I run a shell script from the services menu?, part II

    Remember this?
    It is now possible.

    Doesn't look like there is a direct way to do it.
    The services are all Bundles, which is easy
    enough to fake -- just copy one from /Library/Services
    to ~/Services and modify the plist. Put your shell
    script in Contents/MacOS/ and identify it in the
    plist under CFBundleExecutable and hope for the
    best
    Where it gets sticky is CFBundlePackageType (APPL
    for Application, FMWK for FrameWork, BNDL for
    'loadable bundle', whatever that is] and NSServices.
    CFBundlePackageType should pose no problem if Services
    use the OS loader and handles file magic [and '#!' of
    course].
    NSServices specifies a named port that the app
    listens on, the data type it receives, and so forth.
    This looks a bit harder to fake. I'd bet Applescript
    has the functionality, and there may be some
    command-line hooks to backend that, or it may be
    possible to netcat your way through it.
    But it doesn't look trivial
    Property List Key Reference
    Anyways, tried it with a quick script that echoes to a
    file, and haven't figured out how to refresh the
    Services menu to get it to appear. Probably have
    to NetInfo it or something ridiculous; doesn't appear
    to watch the FS.
    [ Edited by Apple Discussions Moderator; href URL ]

  • Can I run a shell script from the Services menu?

    This would be kind of cool.
    Is there a simple way to do this?

    Doesn't look like there is a direct way to do it.
    The services are all Bundles, which is easy
    enough to fake -- just copy one from /Library/Services
    to ~/Services and modify the plist. Put your shell
    script in Contents/MacOS/ and identify it in the
    plist under CFBundleExecutable and hope for the
    best
    Where it gets sticky is CFBundlePackageType (APPL
    for Application, FMWK for FrameWork, BNDL for
    'loadable bundle', whatever that is] and NSServices.
    CFBundlePackageType should pose no problem if Services
    use the OS loader and handles file magic [and '#!' of
    course].
    NSServices specifies a named port that the app
    listens on, the data type it receives, and so forth.
    This looks a bit harder to fake. I'd bet Applescript
    has the functionality, and there may be some
    command-line hooks to backend that, or it may be
    possible to netcat your way through it.
    But it doesn't look trivial
    Property List Key Reference
    Anyways, tried it with a quick script that echoes to a
    file, and haven't figured out how to refresh the
    Services menu to get it to appear. Probably have
    to NetInfo it or something ridiculous; doesn't appear
    to watch the FS.
    [ Edited by Apple Discussions Moderator; href URL ]

  • Running a Unix script from a Java class

    I am trying to use SCP (Secure copy) to copy an xml file from my J2EE application to a remote Unix server using a Unix script. How can I run the Unix script from my Java class? I could not find any resource for this on the internet. Can someone help me with this please.
    Thanks

    I am trying this below program ,but i am getting the error please help me
    import com.jcraft.jsch.*;
    import com.jcraft.jsch.Channel;
    import com.jcraft.jsch.JSch;
    //import com.jcraft.jsch.JSchException;
    import com.jcraft.jsch.Session;
    //import com.jcraft.jsch.UserInfo;
    import java.io.*;
    public class testrad {
    public static void main(String args[])
    String user="usertvr";
    String host="5.34.12.1";
    String cmd="ls -l";
    JSch jsch = new JSch();
    try{
    Session session=jsch.getSession(user,host,22);
    session.setPassword("$yhaj23");
    //UserInfo usrInfo=new MyUserInfo();
    //session.setUserInfo(usrInfo);
    session.connect();
    Channel channel=session.openChannel("exec");
    ((ChannelExec) channel).setCommand(cmd);
    channel.setXForwarding(true);
    channel.connect();
    //code
    channel.setInputStream(System.in);
    // channel.setOutputStream(System.out);
    //((ChannelExec) channel).setErrStream(System.err);
    InputStream in = channel.getInputStream();
    channel.connect();
    byte[] tmp = new byte[1024];
    while (true)
    while (in.available() > 0)
    int i = in.read(tmp, 0, 1024);
    if (i < 0)
    break;
    System.out.print(new String(tmp, 0, i));
    if (channel.isClosed())
    in.close();
    // System.out.println("JSCH: exit-status: " +
    //channel.getExitStatus());
    break;
    try
    Thread.sleep(1000);
    catch (Exception ee)
    channel.disconnect();
    session.disconnect();
    }catch(Exception e)
    {e.printStackTrace();
    System.out.println("Exception"+e);}
    /*public static class MyUserInfo implements UserInfo {
    public String getPassword()
    { return "password"; }
    public String getPassphrase()
    { return ""; }
    public boolean promptPassword(String arg0)
    { return true; }
    public boolean promptPassphrase(String arg0)
    { return true; }
    public boolean promptYesNo(String arg0)
    { return true; }
    public void showMessage(String arg0)
    Here is the error
    com.jcraft.jsch.JSchException: UnknownHostKey: 5.128.0.10. RSA key fingerprint is 02:a0:d6:c0:6f:69:2c:a9:a7:fa:7c:71:1c:60:ed:57
         at com.jcraft.jsch.Session.checkHost(Unknown Source)
         at com.jcraft.jsch.Session.connect(Unknown Source)
         at com.jcraft.jsch.Session.connect(Unknown Source)
         at testrad.main(testrad.java:23)
    Exceptioncom.jcraft.jsch.JSchException: UnknownHostKey: 5.128.0.10. RSA key fingerprint is 02:a0:d6:c0:6f:69:2c:a9:a7:fa:7c:71:1c:60:ed:57
    Can some one help me please.
    I running this program from Windows to connect to remote unix boxes.

  • Run a UNIX Script from java

    Hi,
    how can i run a unix script from java application. This java application is on windows.
    How can i do this.
    thanks,

    Hi,
    how can i run a unix script from java application.
    This java application is on windows.
    So I think it's safe to assume that the target script is on a remote unix server.
    Take a look at http://sourceforge.net/projects/sshtools/

  • How to run a Python Script in Terminal ?

    Hello,
    how can you run a Python Script in Terminal ? (OS X 10.4.5 - not OS X Server)
    It´s about this Sript:
    http://www.macosxhints.com/article.php?story=20060225091102170
    Thanks
    iMac G5 20"   Mac OS X (10.4.5)  

    While this isn't really specific at all to OS X Server (please keep your questions in the "Mac OS X Server" topic area related to OS X Server, it helps you and everyone else
    Now then:
    Please note the comments of "robg" (the site-"mom"/host):
    "You'll want to save the script without the .txt extension, and remember to make it executable with chmod a+x site2template.sh
    Save the file to your Desktop, and remove the ".txt" from the name so it's named: site2template.sh
    then in the Terminal, issue:
    chmod +x ~/Desktop/site2template.sh
    "~" is shortcut for "the current user's (my) home directory"
    From there you can simply use:
    ~/Desktop/site2template.sh /your/site
    But, far better to:
    choose a location to save the script, typically /usr/local/bin:
    make the directory if you don't have one:
    sudo mkdir /usr/local/bin
    sudo cp ~/Desktop/site2template.sh /usr/local/bin/
    then adjust the permissions:
    sudo chmod 755 /usr/local/bin/site2template.sh
    You may want to add /usr/local/bin to your path.
    cat /etc/profile
    and if you don't see it, add:
    PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
    export PATH
    ie:
    sudo cp /etc/profile /etc/profile.bak
    (back it up to play safe)
    sudo pico /etc/profile
    and add
    :/usr/local/bin
    to the path info.
    Save it (ctl w)
    exit (ctl x)
    then type: source /etc/profile
    (start learning vi or emacs eventually)
    and you'll be able to run:
    site2template /path\ to/your/site/to\ convert

  • How can i run VisualScript of one URL against another URL

    hi folks,
    could anybody tell me how can we run the visual script of one url against another url ?
    eg: visual script recorded for http://www.abcd.com/index.html must be run against http://www.abcd.com/index1.html
    thanks in advance,
    pasumarthi

    pasumarthi,
    You can right click the address node select properties on page one and change the url there. Since the tool is DOM based all following urls will automatically update when you play the script back. You can also use the script updater utility (in the etest icon group) if you have 8.20.
    Hope this helps.

  • Running a shell script through java

    Hi all,
    I have a simple question here.
    How can I run a shell script through java and put the text output into a string.
    I'd be very grateful if you could show me sample code...
    Have a great day,
    Pesho

    Runtime.exec()
    There are plenty of examples. Read the following before continuing, however, as it will save alot of headaches:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Maybe you are looking for

  • LINKSYS N750 - EA3500 Won't stay connected to the Internet!!!

    This SMART WI-FI router is AWFUL!  First of all, I'm smart!!! So I don't like the "easy" system set-up where you can't make your own decisions.  It's frustrating. Anyway, I could never get the first one to connect to the internet at all.  I exchanged

  • Duplicate records found while loading master data(very urgent)

    Hi all, One infopackage in the process chain failed while laoding the master data(full update).Its showing the following error-->duplicate record found ..1 record used in /BI0/PTCTQUERY and the same record occured in /BI0/PTCTQUERY tables. can anyone

  • Problem with sap logon/bex

    Hello Peoples, I have a machine is the same with Windows Vista Home Premium, sap logon 7.10 - patch 11 Access to the SAP system is perfect, but when I try to open the Bex query designer after informing username and password I get the error of communi

  • Can't manually update songs through iTunes

    I have had my iPod mini and iTunes set to let me manually transfer songs for almost a year now and updated to iTunes 5.0 a few weeks ago. I didn't try to update my iPod until tonight, and now iTunes is not letting me click and drag my songs to my iPo

  • Rapidinstall getting struck in Step 3 of 5

    Hi All When I try to install Oracle Applications 11.5.9 on Windows 2003 with Oracle as user, the Rapidinstall is getting struck in Step 3 of 5 while running the command adrundb.cmd. - g performing database charecterset conversion adsvdcnv.cmd There i